metrics: Fix inverted return state in metrics
This commit is contained in:
parent
f266133d14
commit
66a03a9dca
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Reference in a new issue