Skip to content

Commit

Permalink
fix: count RFCs correctly for doc/ad (#6833)
Browse files Browse the repository at this point in the history
* fix: count RFCs correctly for doc/ad

* chore: improve query legibility
  • Loading branch information
rjsparks committed Jan 3, 2024
1 parent 748bcc3 commit bbc64d3
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions ietf/doc/views_search.py
Expand Up @@ -471,11 +471,11 @@ def ad_workload(request):
state = doc_state(doc)

state_events = doc.docevent_set.filter(
Q(type="started_iesg_process")
| Q(type="changed_state")
| Q(type="published_rfc")
| Q(type="closed_ballot"),
).order_by("-time")
type__in=["started_iesg_process", "changed_state", "closed_ballot"]
)
if doc.became_rfc():
state_events = state_events | doc.became_rfc().docevent_set.filter(type="published_rfc")
state_events = state_events.order_by("-time")

# compute state history for drafts
last = now
Expand Down

0 comments on commit bbc64d3

Please sign in to comment.