Fix: API statistics document_file_type_counts return type

This commit is contained in:
shamoon 2023-10-30 16:06:22 -07:00
parent 89757609c2
commit 9ac636edd8

View 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 = (