From db6976a06ae7f677d333cd58e63b2edd414d2851 Mon Sep 17 00:00:00 2001 From: Donald Zou Date: Tue, 8 Jul 2025 16:31:03 +0800 Subject: [PATCH] Updated `psycopg2` to `psycopg` thanks @DaanSelen haha --- src/modules/ConnectionString.py | 2 +- src/requirements.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/ConnectionString.py b/src/modules/ConnectionString.py index 3df56fb..c56fca4 100644 --- a/src/modules/ConnectionString.py +++ b/src/modules/ConnectionString.py @@ -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: diff --git a/src/requirements.txt b/src/requirements.txt index 5b77017..b2266d5 100644 --- a/src/requirements.txt +++ b/src/requirements.txt @@ -10,7 +10,7 @@ requests tcconfig sqlalchemy sqlalchemy_utils -psycopg2 +psycopg mysqlclient tzlocal python-jose \ No newline at end of file