bugfix
This commit is contained in:
parent
e3e1be8568
commit
73baa25d43
@ -1,5 +1,5 @@
|
|||||||
from ahserver.serverenv import ServerEnv
|
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 (
|
from .contract_core import (
|
||||||
create_contract,
|
create_contract,
|
||||||
update_contract,
|
update_contract,
|
||||||
@ -20,7 +20,7 @@ from .ai_config_core import save_ai_config
|
|||||||
|
|
||||||
def load_contract_management():
|
def load_contract_management():
|
||||||
env = ServerEnv()
|
env = ServerEnv()
|
||||||
# 所有函数都是协程,不需要 awaitify 包装
|
# All functions are native coroutines, no awaitify wrapping needed
|
||||||
env.create_contract = create_contract
|
env.create_contract = create_contract
|
||||||
env.update_contract = update_contract
|
env.update_contract = update_contract
|
||||||
env.delete_contract = delete_contract
|
env.delete_contract = delete_contract
|
||||||
|
|||||||
@ -23,5 +23,7 @@ dependencies = [
|
|||||||
"rbac",
|
"rbac",
|
||||||
]
|
]
|
||||||
|
|
||||||
[project.optional-dependencies]
|
[tool.setuptools.packages.find]
|
||||||
dev = ["pytest", "black", "flake8"]
|
where = ["."]
|
||||||
|
include = ["contract_management*"]
|
||||||
|
exclude = ["skill*", "wwwroot*", "models*", "json*", "init*"]
|
||||||
Loading…
x
Reference in New Issue
Block a user