mirror of https://github.com/snachodog/mybuddy.git
hide feeding_day card when no amount is stored with feedings
This commit is contained in:
parent
843160276f
commit
f22bfcfedd
|
@ -118,7 +118,7 @@ def card_feeding_day(context, child, date=None):
|
|||
|
||||
total = sum([instance.amount for instance in instances if instance.amount])
|
||||
count = len(instances)
|
||||
empty = len(instances) == 0
|
||||
empty = len(instances) == 0 or total == 0
|
||||
|
||||
return {
|
||||
'type': 'feeding',
|
||||
|
|
Loading…
Reference in New Issue