fix schema in sql query
This commit is contained in:
parent
d3b624fbd1
commit
c9f996dd8e
|
@ -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))
|
||||||
|
|
Reference in New Issue