Fix: API statistics document_file_type_counts return type (#4464)

This commit is contained in:
shamoon 2023-10-30 16:35:42 -07:00 committed by GitHub
parent e033d5f5a3
commit f4424b02e1

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