From e8f6a17e7f8f533ae218ff7831025b5ade413a58 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Wed, 14 Feb 2024 16:42:55 +0100 Subject: [PATCH] change parameter order --- src/server/BreCal/impl/times.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/BreCal/impl/times.py b/src/server/BreCal/impl/times.py index 9ea67c7..7de18c7 100644 --- a/src/server/BreCal/impl/times.py +++ b/src/server/BreCal/impl/times.py @@ -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