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 = (
|
instance = (
|
||||||
models.Pumping.objects.filter(child=child)
|
models.Pumping.objects.filter(child=child)
|
||||||
.filter(**_filter_data_age(context, "time"))
|
.filter(**_filter_data_age(context))
|
||||||
.order_by("-time")
|
.order_by("-end")
|
||||||
.first()
|
.first()
|
||||||
)
|
)
|
||||||
empty = not instance
|
empty = not instance
|
||||||
|
|
Loading…
Reference in New Issue