hide feeding_day card when no amount is stored with feedings

This commit is contained in:
Benjamin Häublein 2022-02-06 16:56:45 +01:00 committed by Christopher Charbonneau Wells
parent 843160276f
commit f22bfcfedd
1 changed files with 1 additions and 1 deletions

View File

@ -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',