removed wrong curly braces

This commit is contained in:
Daniel Schick 2024-12-17 10:48:39 +01:00
parent 7813203790
commit 47da3ff475

View File

@ -201,7 +201,7 @@ def PutShipcalls(schemaModel):
# test if object to update is found # test if object to update is found
sentinel = object() sentinel = object()
theshipcall = commands.query_single_or_default("SELECT * FROM shipcall where id = ?id?", sentinel, param={"id" : schemaModel["id"]}) theshipcall = commands.query_single_or_default("SELECT * FROM shipcall where id = ?id?", sentinel, param={"id" : schemaModel["id"]})
if theshipcall is sentinel: if theshipcall is sentinel:
pooledConnection.close() pooledConnection.close()
@ -242,7 +242,7 @@ def PutShipcalls(schemaModel):
affected_rows = commands.execute(query, param=schemaModel) affected_rows = commands.execute(query, param=schemaModel)
shipdata = get_ship_data_for_id(schemaModel["ship_id"]) shipdata = get_ship_data_for_id(schemaModel["ship_id"])
message = {shipdata['name']} message = shipdata['name']
if "type_value" in schemaModel: if "type_value" in schemaModel:
match schemaModel["type_value"]: match schemaModel["type_value"]:
case 1: case 1: