From 73baa25d43b615d0041f21c6396e05667ca71264 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 15 Apr 2026 15:32:22 +0800 Subject: [PATCH] bugfix --- contract_management/init.py | 4 ++-- pyproject.toml | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/contract_management/init.py b/contract_management/init.py index c948bf4..c227cb1 100644 --- a/contract_management/init.py +++ b/contract_management/init.py @@ -1,5 +1,5 @@ from ahserver.serverenv import ServerEnv -from appPublic.worker import awaitify +# from appPublic.worker import awaitify # Not needed since all functions are native coroutines from .contract_core import ( create_contract, update_contract, @@ -20,7 +20,7 @@ from .ai_config_core import save_ai_config def load_contract_management(): env = ServerEnv() - # 所有函数都是协程,不需要 awaitify 包装 + # All functions are native coroutines, no awaitify wrapping needed env.create_contract = create_contract env.update_contract = update_contract env.delete_contract = delete_contract diff --git a/pyproject.toml b/pyproject.toml index 52e09df..7994088 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,5 +23,7 @@ dependencies = [ "rbac", ] -[project.optional-dependencies] -dev = ["pytest", "black", "flake8"] \ No newline at end of file +[tool.setuptools.packages.find] +where = ["."] +include = ["contract_management*"] +exclude = ["skill*", "wwwroot*", "models*", "json*", "init*"] \ No newline at end of file