This commit is contained in:
MarkusJoe
2022-03-26 08:41:15 +08:00
parent 78652b2787
commit 1976ef6155
4 files changed
+61 -27

No files matched your search

+2 -1
View File
@@ -8,6 +8,7 @@
import sqlite3
from typing import List
from config import Config
class SQLite:
@@ -18,7 +19,7 @@ class SQLite:
初始化SQLite对象
完成后会自动提交, 自动关闭
"""
self.__path = './app/db/data.db'
self.__path = Config.SQLALCHEMY_DATABASE_URI
self.__conn = sqlite3.connect(self.__path)
self.__cursor = self.__conn.cursor()