mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-07-16 01:56:58 +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):
|
if not os.path.isdir(sqlitePath):
|
||||||
os.mkdir(sqlitePath)
|
os.mkdir(sqlitePath)
|
||||||
if parser.get("Database", "type") == "postgresql":
|
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":
|
elif parser.get("Database", "type") == "mysql":
|
||||||
cn = f'mysql+mysqldb://{parser.get("Database", "username")}:{parser.get("Database", "password")}@{parser.get("Database", "host")}/{database}'
|
cn = f'mysql+mysqldb://{parser.get("Database", "username")}:{parser.get("Database", "password")}@{parser.get("Database", "host")}/{database}'
|
||||||
else:
|
else:
|
||||||
|
@ -10,7 +10,7 @@ requests
|
|||||||
tcconfig
|
tcconfig
|
||||||
sqlalchemy
|
sqlalchemy
|
||||||
sqlalchemy_utils
|
sqlalchemy_utils
|
||||||
psycopg2
|
psycopg
|
||||||
mysqlclient
|
mysqlclient
|
||||||
tzlocal
|
tzlocal
|
||||||
python-jose
|
python-jose
|
Loading…
x
Reference in New Issue
Block a user