Bugfix for creating new shipcalls

This commit is contained in:
Daniel Schick 2024-04-13 12:32:28 +02:00
parent f1e392591e
commit 15eb7615a6

View File

@ -96,6 +96,7 @@ def PostShipcalls(schemaModel):
query += ") VALUES (" query += ") VALUES ("
isNotFirst = False isNotFirst = False
for key in schemaModel.keys(): for key in schemaModel.keys():
param_key = key
if key == "id": if key == "id":
continue continue
if key == "participants": if key == "participants":
@ -119,7 +120,7 @@ def PostShipcalls(schemaModel):
if isNotFirst: if isNotFirst:
query += "," query += ","
isNotFirst = True isNotFirst = True
query += "?" + key + "?" query += "?" + param_key + "?"
query += ")" query += ")"
commands.execute(query, schemaModel) commands.execute(query, schemaModel)