Skip to content

Commit cff0a50

Browse files
committed
chore: 更新magic-dash-pro模板中的PooledPostgresqlExtDatabase为PooledPostgresqlDatabase
1 parent 86304d2 commit cff0a50

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

magic_dash/templates/magic-dash-pro/models/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from peewee import SqliteDatabase, Model
22
from feffery_dash_utils.version_utils import check_dependencies_version
3-
from playhouse.pool import PooledPostgresqlExtDatabase, PooledMySQLDatabase
3+
from playhouse.pool import PooledPostgresqlDatabase, PooledMySQLDatabase
44

55
from configs.database_config import DatabaseConfig
66

@@ -19,7 +19,7 @@ def get_db():
1919
)
2020

2121
# 返回postgresql类型连接池对象
22-
return PooledPostgresqlExtDatabase(
22+
return PooledPostgresqlDatabase(
2323
host=DatabaseConfig.postgresql_config["host"],
2424
port=DatabaseConfig.postgresql_config["port"],
2525
user=DatabaseConfig.postgresql_config["user"],

magic_dash/templates/magic-dash-pro/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ feffery_dash_utils>=0.2.6
44
feffery_utils_components>=0.3.6,<0.4.0
55
feffery_markdown_components>=0.4.3
66
Flask_Login
7-
peewee
7+
peewee>=4.0.0
88
user_agents
99
flask-compress
1010
flask-principal

0 commit comments

Comments
 (0)