mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-15 17:46:59 +00:00
Updated psycopg2
to psycopg
thanks @DaanSelen haha
This commit is contained in:
parent
aa66a5ffb2
commit
db6976a06a
@ -8,7 +8,7 @@ def ConnectionString(database) -> str or None:
|
||||
if not os.path.isdir(sqlitePath):
|
||||
os.mkdir(sqlitePath)
|
||||
if parser.get("Database", "type") == "postgresql":
|
||||
cn = f'postgresql+psycopg2://{parser.get("Database", "username")}:{parser.get("Database", "password")}@{parser.get("Database", "host")}/{database}'
|
||||
cn = f'postgresql+psycopg://{parser.get("Database", "username")}:{parser.get("Database", "password")}@{parser.get("Database", "host")}/{database}'
|
||||
elif parser.get("Database", "type") == "mysql":
|
||||
cn = f'mysql+mysqldb://{parser.get("Database", "username")}:{parser.get("Database", "password")}@{parser.get("Database", "host")}/{database}'
|
||||
else:
|
||||
|
@ -10,7 +10,7 @@ requests
|
||||
tcconfig
|
||||
sqlalchemy
|
||||
sqlalchemy_utils
|
||||
psycopg2
|
||||
psycopg
|
||||
mysqlclient
|
||||
tzlocal
|
||||
python-jose
|
Loading…
x
Reference in New Issue
Block a user