mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-07-04 01:01:41 +02:00
Fix DBCONNSTRING
This commit is contained in:
@ -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";')
|
||||
|
Reference in New Issue
Block a user