From ad7439467bd366d55cbd70c6693a38ea6b46c4cf Mon Sep 17 00:00:00 2001 From: Max Metz Date: Thu, 24 Oct 2024 14:55:22 +0200 Subject: [PATCH] formatting --- src/server/BreCal/database/sql_utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/server/BreCal/database/sql_utils.py b/src/server/BreCal/database/sql_utils.py index 2f8cc0b..6c99818 100644 --- a/src/server/BreCal/database/sql_utils.py +++ b/src/server/BreCal/database/sql_utils.py @@ -77,7 +77,9 @@ def filter_shipcalls_by_users_assigned_ports(shipcalls:list[model.Shipcall], use # use the user's id to obtain the matching participant sentinel = object() - participant = commands.query_single_or_default(user_participant_query, default=sentinel, model=model.Participant, param={"userid":user_data.get("id")}) + participant = commands.query_single_or_default( + user_participant_query, default=sentinel, model=model.Participant, + param={"userid":user_data.get("id")}) if participant is sentinel: raise Exception(f"could not find a user with id {user_data.get('id')}") shipcalls = filter_shipcalls_by_port(shipcalls, participant)