fix schema in sql query

This commit is contained in:
Cayo Puigdefabregas 2023-04-28 12:54:30 +02:00
parent d3b624fbd1
commit c9f996dd8e
1 changed files with 1 additions and 1 deletions

View File

@ -1021,7 +1021,7 @@ class ExportsView(View):
share.lot_id=lot_device.lot_id share.lot_id=lot_device.lot_id
where share.user_to_id='{user_id}' where share.user_to_id='{user_id}'
""".format( """.format(
schema='dbtest', user_id=g.user.id schema=app.config.get('SCHEMA'), user_id=g.user.id
) )
shared = (x[0] for x in db.session.execute(sql)) shared = (x[0] for x in db.session.execute(sql))