change parameter order

This commit is contained in:
Daniel Schick 2024-02-14 16:42:55 +01:00
parent c6bbbf94e3
commit e8f6a17e7f

View File

@ -144,7 +144,7 @@ def PutTimes(schemaModel):
# TODO: set ETA properly
user_data = check_jwt()
query = "INSERT INTO history (participant_id, shipcall_id, user_id, timestamp, eta, type, operation) VALUES (?pid?, ?scid?, ?uid?, CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 2, 2)"
commands.query(query, {"scid" : schemaModel["shipcall_id"], "pid" : user_data["participant_id"], "uid" : user_data["id"]})
commands.query(query, {"pid" : user_data["participant_id"], "scid" : schemaModel["shipcall_id"], "uid" : user_data["id"]})
# if affected_rows == 1: # this doesn't work as expected