]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix: API statistics document_file_type_counts return type (#4464)
authorshamoon <4887959+shamoon@users.noreply.github.com>
Mon, 30 Oct 2023 23:35:42 +0000 (16:35 -0700)
committerGitHub <noreply@github.com>
Mon, 30 Oct 2023 23:35:42 +0000 (16:35 -0700)
src/documents/views.py

index 8f2be05496eae8c586130f173c67cdf60bcb6e4e..49682e3ea0187d18d8ff13db1b03129062edf943 100644 (file)
@@ -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 = (