mirror of https://github.com/snachodog/mybuddy.git
update last-pump card for start/end/duration
This commit is contained in:
parent
b25d27c40e
commit
6adef3ebb9
|
@ -207,8 +207,8 @@ def card_pumping_last(context, child):
|
|||
"""
|
||||
instance = (
|
||||
models.Pumping.objects.filter(child=child)
|
||||
.filter(**_filter_data_age(context, "time"))
|
||||
.order_by("-time")
|
||||
.filter(**_filter_data_age(context))
|
||||
.order_by("-end")
|
||||
.first()
|
||||
)
|
||||
empty = not instance
|
||||
|
|
Loading…
Reference in New Issue