From 4c22983f232a062221e7267eef00dc6e8ea9d157 Mon Sep 17 00:00:00 2001 From: xianfuxing Date: Mon, 13 Aug 2018 20:48:11 +0800 Subject: [PATCH] # up task --- apps/mosquito/tasks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/mosquito/tasks.py b/apps/mosquito/tasks.py index 90a3bf1..c6b2bbc 100644 --- a/apps/mosquito/tasks.py +++ b/apps/mosquito/tasks.py @@ -75,6 +75,7 @@ def update_daily_statistic(): increment = ret[d] - ret[d-timedelta(days=1)] history, created = MosqPostStatistic.objects.update_or_create(date=d, total=ret[d], increment=increment) is_first = False + return _date_list @task()