diff --git a/apps/wpm/tasks.py b/apps/wpm/tasks.py index 4a243228..5173115d 100644 --- a/apps/wpm/tasks.py +++ b/apps/wpm/tasks.py @@ -32,7 +32,7 @@ def make_sflogs_simple(days, state_date: str, end_date: str): @shared_task(base=CustomTask) -def get_total_hour_now(sflogId: str): +def get_total_hour_now(sflogId: str=''): """ 获取当前总时长, 当传入的是一个sflog时, 返回其total_hour_now 否则更新所有total_hour_now