update last-pump card for start/end/duration

This commit is contained in:
John Merlie 2023-06-16 17:08:10 -04:00 committed by Christopher Charbonneau Wells
parent b25d27c40e
commit 6adef3ebb9
1 changed files with 2 additions and 2 deletions

View File

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