From 15eb7615a6dba098429bcc5aee51e30d22216185 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Sat, 13 Apr 2024 12:32:28 +0200 Subject: [PATCH] Bugfix for creating new shipcalls --- src/server/BreCal/impl/shipcalls.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/BreCal/impl/shipcalls.py b/src/server/BreCal/impl/shipcalls.py index 9eeca1b..59f9311 100644 --- a/src/server/BreCal/impl/shipcalls.py +++ b/src/server/BreCal/impl/shipcalls.py @@ -96,6 +96,7 @@ def PostShipcalls(schemaModel): query += ") VALUES (" isNotFirst = False for key in schemaModel.keys(): + param_key = key if key == "id": continue if key == "participants": @@ -119,7 +120,7 @@ def PostShipcalls(schemaModel): if isNotFirst: query += "," isNotFirst = True - query += "?" + key + "?" + query += "?" + param_key + "?" query += ")" commands.execute(query, schemaModel)