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()