From c9f996dd8e5f1386283ec40f726ef92092df6748 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Fri, 28 Apr 2023 12:54:30 +0200 Subject: [PATCH] fix schema in sql query --- ereuse_devicehub/inventory/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ereuse_devicehub/inventory/views.py b/ereuse_devicehub/inventory/views.py index 40c6217b..b326f268 100644 --- a/ereuse_devicehub/inventory/views.py +++ b/ereuse_devicehub/inventory/views.py @@ -1021,7 +1021,7 @@ class ExportsView(View): share.lot_id=lot_device.lot_id where share.user_to_id='{user_id}' """.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))