Bugfix for creating new shipcalls
This commit is contained in:
parent
f1e392591e
commit
15eb7615a6
@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user