mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-11-10 08:21:01 +00:00
Fix: use filtered documents for statistics ASN max (#14710)
This commit is contained in:
1 parent
53d9aa34a1
commit
0736c07d8e
2 files changed
+45
-1
No files matched your search
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user