metrics: Fix inverted return state in metrics
All checks were successful
/ test (push) Successful in 2m37s
/ deploy (push) Successful in 4m25s

This commit is contained in:
lagertonne 2024-12-24 07:05:47 +01:00
parent f266133d14
commit 66a03a9dca

View file

@ -17,7 +17,7 @@ class ItemCountCollector(object):
Item.all_objects Item.all_objects
.annotate( .annotate(
returned=Case( returned=Case(
When(returned_at__isnull=False, then=Value(False)), When(returned_at__isnull=True, then=Value(False)),
default=Value(True), default=Value(True),
output_field=BooleanField() output_field=BooleanField()
) )