This commit is contained in:
yumoqing 2026-04-15 15:32:22 +08:00
parent e3e1be8568
commit 73baa25d43
2 changed files with 6 additions and 4 deletions

View File

@ -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

View File

@ -23,5 +23,7 @@ dependencies = [
"rbac",
]
[project.optional-dependencies]
dev = ["pytest", "black", "flake8"]
[tool.setuptools.packages.find]
where = ["."]
include = ["contract_management*"]
exclude = ["skill*", "wwwroot*", "models*", "json*", "init*"]