Refine fastapi code

This commit is contained in:
DingZQ
2022-12-03 10:16:52 +08:00
parent 5d9323cbf2
commit ce7139a9e9
2 changed files with 82 additions and 73 deletions

View File

@@ -100,6 +100,9 @@ OPTION_QUALITY_TRACE = api.OPTION_QUALITY_TRACE
# project
############################################################
def list_project() -> list[str]:
return api.list_project()
def have_project(name: str) -> bool:
return api.have_project(name)
@@ -146,9 +149,6 @@ def dump_output(path: str) -> str:
# operation
############################################################
def list_project() -> list[str]:
return api.list_project()
def get_current_operation(name: str) -> int:
return api.get_current_operation(name)