From a0b04623025ce1d33deb7754fd6a7bd9801358f0 Mon Sep 17 00:00:00 2001 From: Daniel Schick Date: Mon, 19 Jun 2023 10:23:40 +0200 Subject: [PATCH] fixed participant loading --- src/server/BreCal/impl/participant.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/BreCal/impl/participant.py b/src/server/BreCal/impl/participant.py index 098919d..772b693 100644 --- a/src/server/BreCal/impl/participant.py +++ b/src/server/BreCal/impl/participant.py @@ -15,7 +15,7 @@ def GetParticipant(options): try: commands = pydapper.using(local_db.connection_pool) - data = commands.query("SELECT p.id as id, p.name as name, p.street as street, p.postal_code as postal_code, p.city as city, p.flags as flags, p.created as created, p.modified as modified FROM participant p INNER JOIN user u WHERE u.participant_id = p.id and u.id = ?user_id?", model=model.Participant, param=[{"user_id" : options["user_id"]}]) + data = commands.query("SELECT p.id as id, p.name as name, p.street as street, p.postal_code as postal_code, p.city as city, p.flags as flags, p.created as created, p.modified as modified FROM participant p INNER JOIN user u WHERE u.participant_id = p.id and u.id = ?userid?", model=model.Participant, param={"userid" : options["user_id"]}) except Exception as ex: logging.error(ex)