fixed small de-ref bug

This commit is contained in:
Daniel Schick 2025-01-07 07:24:42 +01:00
parent f7684902aa
commit 710e21e567

View File

@ -136,7 +136,7 @@ def PostShipcalls(schemaModel):
new_id = commands.execute_scalar("select last_insert_id()") new_id = commands.execute_scalar("select last_insert_id()")
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:
@ -146,6 +146,7 @@ def PostShipcalls(schemaModel):
case 3: case 3:
message += " [SHIFTING]" message += " [SHIFTING]"
# add participant assignments if we have a list of participants # add participant assignments if we have a list of participants
if 'participants' in schemaModel: if 'participants' in schemaModel:
# pquery = SQLQuery.get_shipcall_post_update_shipcall_participant_map() # pquery = SQLQuery.get_shipcall_post_update_shipcall_participant_map()