From 26fbe6756ddc2bf79aa14b533dc487d6353b4d56 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 13 Jul 2025 10:35:18 +0800 Subject: [PATCH] feat: add cocker-compose yaml --- python_core/config.py | 2 +- python_core/database/resource_category_postgres.py | 2 +- python_core/database/template_postgres.py | 2 +- python_core/database/user_postgres.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/python_core/config.py b/python_core/config.py index 0ee8967..c6d270a 100644 --- a/python_core/config.py +++ b/python_core/config.py @@ -18,7 +18,7 @@ except ImportError: project_root = Path(__file__).parent.parent class Settings(BaseSettings): """Application settings with environment variable support.""" - db: str = "postgres://dcb93e55a36f8056ce4ddc37c4ddd46d717859834d9d7475a080f57c25a99067:sk_qN1plssQ5n2gKU4ZNNG0_@db.prisma.io:5432/?sslmode=require" + db: str = "postgres://192.168.0.126:5433/mixvideo" # Application Info app_name: str = "MixVideo V2" app_version: str = "2.0.0" diff --git a/python_core/database/resource_category_postgres.py b/python_core/database/resource_category_postgres.py index ea9904e..7848473 100644 --- a/python_core/database/resource_category_postgres.py +++ b/python_core/database/resource_category_postgres.py @@ -57,7 +57,7 @@ PostgreSQL 驱动 psycopg2 未安装。请安装: self.table_name = "resource_categories" # 初始化素材分类表 - # self._init_resource_category_table() + self._init_resource_category_table() @contextmanager def _get_connection(self): diff --git a/python_core/database/template_postgres.py b/python_core/database/template_postgres.py index ff8f1d9..d64cd95 100644 --- a/python_core/database/template_postgres.py +++ b/python_core/database/template_postgres.py @@ -57,7 +57,7 @@ PostgreSQL 驱动 psycopg2 未安装。请安装: self.table_name = "templates" # 初始化模板表 - # self._init_template_table() + self._init_template_table() @contextmanager def _get_connection(self): diff --git a/python_core/database/user_postgres.py b/python_core/database/user_postgres.py index cab7946..e3246ca 100644 --- a/python_core/database/user_postgres.py +++ b/python_core/database/user_postgres.py @@ -56,7 +56,7 @@ PostgreSQL 驱动 psycopg2 未安装。请安装: self.table_name = "users" # 初始化用户表 - # self._init_user_table() + self._init_user_table() @contextmanager def _get_connection(self):