From 6ee42a6993dfb107c58fd12559be486abdfe7cb8 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Tue, 7 May 2024 10:00:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20get=5Ftotal=5Fhour=5Fnow=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=8F=82=E6=95=B0=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/wpm/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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