Fix diaper change types care query min_date to match range (seven days).

This commit is contained in:
Christopher Charbonneau Wells 2017-09-10 04:40:10 -04:00
parent 99dcb1e7ca
commit 4f93d96501
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ def card_diaperchange_types(child):
max_date = (timezone.localtime() + timezone.timedelta(
days=1)).replace(hour=0, minute=0, second=0)
min_date = (max_date - timezone.timedelta(
days=7)).replace(hour=0, minute=0, second=0)
days=6)).replace(hour=0, minute=0, second=0)
for x in range(6):
stats[x] = {'wet': 0, 'solid': 0}