Fix: use filtered documents for statistics ASN max

This commit is contained in:
shamoon committed 2026-11-07 07:25:07 -08:00
1 parent 19fdc3b815
commit 44f7ab021c
1 file changed
+1 -1
+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",