chg: [bacjend:exercise] More details about task status
This commit is contained in:
parent
bab31cb0f8
commit
81bb48ff54
1 changed files with 2 additions and 2 deletions
|
@ -348,10 +348,10 @@ async def check_inject(user_id: int, inject: dict, data: dict, context: dict) ->
|
||||||
for inject_evaluation in inject['inject_evaluation']:
|
for inject_evaluation in inject['inject_evaluation']:
|
||||||
success = await inject_checker_router(user_id, inject_evaluation, data, context)
|
success = await inject_checker_router(user_id, inject_evaluation, data, context)
|
||||||
if not success:
|
if not success:
|
||||||
logger.info(f"Task not completed: {inject['uuid']}")
|
logger.info(f"Task not completed[{user_id}]: {inject['uuid']}")
|
||||||
return False
|
return False
|
||||||
mark_task_completed(user_id, inject['exercise_uuid'], inject['uuid'])
|
mark_task_completed(user_id, inject['exercise_uuid'], inject['uuid'])
|
||||||
logger.info(f"Task success: {inject['uuid']}")
|
logger.info(f"Task success[{user_id}]: {inject['uuid']}")
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue