mirror of https://github.com/snachodog/mybuddy.git
Fix last diaper change time on card.
This commit is contained in:
parent
e3d7d64c35
commit
0da15482bd
|
@ -55,7 +55,7 @@ def card_diaperchange_types(child):
|
|||
stats[date]['wet_pct'] = info['wet'] / total * 100
|
||||
stats[date]['solid_pct'] = info['solid'] / total * 100
|
||||
|
||||
return {'stats': stats, 'last_change': instances.last()}
|
||||
return {'stats': stats, 'last_change': instances.first()}
|
||||
|
||||
|
||||
@register.inclusion_tag('cards/tummytime_last.html')
|
||||
|
|
Loading…
Reference in New Issue