mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 02:51:48 +02:00
Fix DBCONNSTRING
This commit is contained in:
parent
72914109c0
commit
bc44985fed
@ -18,6 +18,7 @@ connection = None
|
||||
def open_db() -> engine.base.Connection:
|
||||
global connection
|
||||
if (not connection):
|
||||
print(current_app.config.get("DBCONNSTRING"))
|
||||
engine = create_engine(current_app.config.get("DBCONNSTRING"))
|
||||
connection = engine.connect()
|
||||
# cur.execute('PRAGMA encoding = "UTF-8";')
|
||||
|
Loading…
x
Reference in New Issue
Block a user