Skip to content

Commit

Permalink
prints and version
Browse files Browse the repository at this point in the history
  • Loading branch information
IUrreta committed Sep 7, 2024
1 parent 04e9c6e commit d5fa9a6
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 13 deletions.
1 change: 0 additions & 1 deletion back/commands/commandFactory.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def __init__(self):

def create_command(self, message, client):
command_type = message["command"]
# print(message) #for debugging
if command_type in self.command_dict:
return self.command_dict[command_type](message, client)
else:
Expand Down
1 change: 0 additions & 1 deletion back/commands/partRequest.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ def __init__(self, message, client):
super().__init__(message, client)

async def execute(self):
print(self.message)
car_analysis = CarAnalysisUtils(self.client)
part_values = ["Part values fetched", car_analysis.get_unitvalue_from_one_part(self.message['designID'])]
data_json_part_values = json.dumps(part_values)
Expand Down
7 changes: 0 additions & 7 deletions back/scripts/transfer_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ def hire_driver(self, type, driverID, teamID, position, salary=None, starting_bo
was_in_f3 = self.cursor.execute(f"SELECT Points FROM Races_DriverStandings WHERE DriverID = {driverID} AND SeasonID = {year} AND RaceFormula = 3").fetchone()

if was_in_f2 is not None:
# print("was in f2")
self.cursor.execute(f"DELETE FROM Races_DriverStandings WHERE DriverID = {driverID} AND SeasonID = {year} AND RaceFormula = 2")
if was_in_f3 is not None:
# print("was in f3")
self.cursor.execute(f"DELETE FROM Races_DriverStandings WHERE DriverID = {driverID} AND SeasonID = {year} AND RaceFormula = 3")

#gives new numbers to newcommers in f1
Expand Down Expand Up @@ -272,10 +270,8 @@ def swap_drivers(self, driver_1_id, driver_2_id):
was_in_f3 = self.cursor.execute(f"SELECT Points FROM Races_DriverStandings WHERE DriverID = {driver_1_id} AND SeasonID = {year[0]} AND RaceFormula = 3").fetchone()

if was_in_f2 is not None:
# print("was in f2")
self.cursor.execute(f"DELETE FROM Races_DriverStandings WHERE DriverID = {driver_1_id} AND SeasonID = {year[0]} AND RaceFormula = 2")
if was_in_f3 is not None:
# print("was in f3")
self.cursor.execute(f"DELETE FROM Races_DriverStandings WHERE DriverID = {driver_1_id} AND SeasonID = {year[0]} AND RaceFormula = 3")

position_1in_standings = self.cursor.execute(f"SELECT MAX(Position) FROM Races_DriverStandings WHERE RaceFormula = 1 AND SeasonID = {year[0]}").fetchone()
Expand Down Expand Up @@ -307,10 +303,8 @@ def swap_drivers(self, driver_1_id, driver_2_id):
was_in_f3 = self.cursor.execute(f"SELECT Points FROM Races_DriverStandings WHERE DriverID = {driver_2_id} AND SeasonID = {year[0]} AND RaceFormula = 3").fetchone()

if was_in_f2 is not None:
# print("was in f2")
self.cursor.execute(f"DELETE FROM Races_DriverStandings WHERE DriverID = {driver_2_id} AND SeasonID = {year[0]} AND RaceFormula = 2")
if was_in_f3 is not None:
# print("was in f3")
self.cursor.execute(f"DELETE FROM Races_DriverStandings WHERE DriverID = {driver_2_id} AND SeasonID = {year[0]} AND RaceFormula = 3")

#checks if the driver was in the standings and if it wasn't it updates the standings
Expand Down Expand Up @@ -431,7 +425,6 @@ def get_driver_id(self, name):
else:
driver_id = self.cursor.execute(f"SELECT StaffID FROM Staff_BasicData WHERE LastName = '[StaffName_Surname_{driver}]'").fetchone()

# print(name, driver_id)

return driver_id

Expand Down
2 changes: 1 addition & 1 deletion launcher/version.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.2.3
2.2.4
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Database Editor F1 Manager",
"version": "2.2.3",
"version": "2.2.4",
"description": "A tool that will let you edit your save file from F1 Manager games",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit d5fa9a6

Please sign in to comment.