From f2c43713b16e821f4a1ae97804c60f18734d5f6a Mon Sep 17 00:00:00 2001 From: zhaoqingang <zhaoqg0118@163.com> Date: 星期五, 13 十二月 2024 17:25:12 +0800 Subject: [PATCH] 问题优化 --- app/task/fetch_agent.py | 8 -------- 1 files changed, 0 insertions(+), 8 deletions(-) diff --git a/app/task/fetch_agent.py b/app/task/fetch_agent.py index 42aa3e0..991c0d0 100644 --- a/app/task/fetch_agent.py +++ b/app/task/fetch_agent.py @@ -1,14 +1,12 @@ from typing import Dict, List, Tuple from sqlalchemy import create_engine, Column, String, Integer -from sqlalchemy.dialects.postgresql import array from sqlalchemy.exc import IntegrityError from sqlalchemy.orm import sessionmaker from app.config.config import settings from app.models.agent_model import AgentModel from app.models.base_model import SessionLocal, Base -from app.service.v2.initialize_data import dialog_menu_sync # 鍒涘缓鏁版嵁搴撳紩鎿庡拰浼氳瘽宸ュ巶 engine_bisheng = create_engine(settings.sgb_db_url) @@ -151,11 +149,5 @@ print(f"Failed to sync agents: {str(e)}") -async def sync_web_menu(): - db = SessionLocal() - await dialog_menu_sync(db) -async def sync_default_group(): - db = SessionLocal() - await dialog_menu_sync(db) \ No newline at end of file -- Gitblit v1.8.0