summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/views_item.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py
index da1543e7b..70ae0f2d0 100644
--- a/ishtar_common/views_item.py
+++ b/ishtar_common/views_item.py
@@ -2183,7 +2183,7 @@ def get_item(
items = items.distinct()
try:
- items_nb = items.values("pk").aggregate(Count("pk"))["pk__count"]
+ items_nb = items.values("pk").aggregate(Count("pk"))["pk__count"] or 0
except ProgrammingError:
items_nb = 0
if count: