Fix: use filtered documents for statistics ASN max (#14710)

This commit is contained in:
shamoon authored and GitHub committed 2026-11-07 07:52:23 -08:00
1 parent 53d9aa34a1
commit 0736c07d8e
2 files changed
+45 -1

No files matched your search

+1 -1
View File
@@ -4078,7 +4078,7 @@ class StatisticsView(GenericAPIView[Any]):
for row in mime_type_stats
]
current_asn = Document.objects.aggregate(
current_asn = documents.aggregate(
Max("archive_serial_number", default=0),
).get(
"archive_serial_number__max",