mirror of https://github.com/snachodog/mybuddy.git
Fix diaper change types care query min_date to match range (seven days).
This commit is contained in:
parent
99dcb1e7ca
commit
4f93d96501
|
@ -43,7 +43,7 @@ def card_diaperchange_types(child):
|
||||||
max_date = (timezone.localtime() + timezone.timedelta(
|
max_date = (timezone.localtime() + timezone.timedelta(
|
||||||
days=1)).replace(hour=0, minute=0, second=0)
|
days=1)).replace(hour=0, minute=0, second=0)
|
||||||
min_date = (max_date - timezone.timedelta(
|
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):
|
for x in range(6):
|
||||||
stats[x] = {'wet': 0, 'solid': 0}
|
stats[x] = {'wet': 0, 'solid': 0}
|
||||||
|
|
Loading…
Reference in New Issue