Skip to content

Commit

Permalink
fix: filter draft documents that became RFCs out of docs by ad (#6884)
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks committed Jan 5, 2024
1 parent 5174e39 commit 88bc604
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ietf/doc/views_search.py
Expand Up @@ -591,7 +591,7 @@ def sort_key(doc):
if not ad:
raise Http404

results, meta = prepare_document_table(request, Document.objects.filter(ad=ad))
results, meta = prepare_document_table(request, Document.objects.filter(ad=ad), max_results=500)
results.sort(key=lambda d: sort_key(d))
del meta["headers"][-1]

Expand All @@ -611,6 +611,7 @@ def sort_key(doc):
and (
r.get_state_slug("draft-iesg") == "dead"
or r.get_state_slug("draft") == "repl"
or r.get_state_slug("draft") == "rfc"
)
)
]
Expand Down

0 comments on commit 88bc604

Please sign in to comment.