Skip to content

Commit

Permalink
fix: become agnostic about RFC states until we care
Browse files Browse the repository at this point in the history
  • Loading branch information
rjsparks committed Jul 7, 2023
1 parent f7d9e49 commit 6eeffb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ietf/doc/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,7 @@ def generate_idnits2_rfc_status():
'unkn': 'U',
}

rfcs = Document.objects.filter(type_id='rfc',states__slug='published',states__type='rfc')
rfcs = Document.objects.filter(type_id='rfc')
for rfc in rfcs:
offset = int(rfc.rfc_number)-1
blob[offset] = symbols[rfc.std_level_id]
Expand Down
2 changes: 1 addition & 1 deletion ietf/doc/views_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def shorten_group_name(name):

def ad_dashboard_sort_key(doc):

if doc.type.slug=='rfc' and doc.get_state_slug('rfc') == 'published':
if doc.type.slug=='rfc':
return "21%04d" % int(doc.rfc_number)
if doc.type.slug=='statchg' and doc.get_state_slug('statchg') == 'appr-sent':
return "22%d" % 0 # TODO - get the date of the transition into this state here
Expand Down

0 comments on commit 6eeffb1

Please sign in to comment.