|
|
@@ -127,13 +127,12 @@ def update_topic_result(param: DecodeWorkflowParam):
|
|
|
}
|
|
|
|
|
|
|
|
|
-@app.get("/decodeWorkflow/userCount")
|
|
|
-def get_user_count(params: AccountParam):
|
|
|
- account = params.account
|
|
|
+@app.get("/decodeWorkflow/userCount/{account}")
|
|
|
+def get_user_count(account: str):
|
|
|
result = get_user_count_db(account)
|
|
|
logger.info(f"\n查询账号{account}的任务数量----{result}")
|
|
|
|
|
|
- if not result:
|
|
|
+ if result is None:
|
|
|
return {
|
|
|
"code": -1,
|
|
|
"message": '任务不存在',
|