fixed participant loading
This commit is contained in:
parent
f6f2f73d01
commit
a0b0462302
@ -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)
|
||||
|
||||
Reference in New Issue
Block a user