From 10929e9ac8a9bb191d15bab6d8b6b6168dcc97d9 Mon Sep 17 00:00:00 2001 From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Mon, 30 Oct 2023 16:35:42 -0700 Subject: [PATCH] Fix: API statistics document_file_type_counts return type (#4464) --- src/documents/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/documents/views.py b/src/documents/views.py index 8f2be0549..49682e3ea 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -1001,7 +1001,7 @@ class StatisticsView(APIView): .annotate(mime_type_count=Count("mime_type")) .order_by("-mime_type_count") if documents_total > 0 - else 0 + else [] ) character_count = (