From 710e21e567a4daf99b62d4a5791cccd789f42bc0 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Tue, 7 Jan 2025 07:24:42 +0100 Subject: [PATCH] fixed small de-ref bug --- 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 b999902..df4c9b6 100644 --- a/src/server/BreCal/impl/shipcalls.py +++ b/src/server/BreCal/impl/shipcalls.py @@ -136,7 +136,7 @@ def PostShipcalls(schemaModel): new_id = commands.execute_scalar("select last_insert_id()") shipdata = get_ship_data_for_id(schemaModel["ship_id"]) - message = {shipdata['name']} + message = shipdata['name'] if "type_value" in schemaModel: match schemaModel["type_value"]: case 1: @@ -146,6 +146,7 @@ def PostShipcalls(schemaModel): case 3: message += " [SHIFTING]" + # add participant assignments if we have a list of participants if 'participants' in schemaModel: # pquery = SQLQuery.get_shipcall_post_update_shipcall_participant_map()