fix: become agnostic about RFC states until we care

This commit is contained in:
Robert Sparks 2023-07-07 10:33:29 -05:00
parent f7d9e49731
commit 6eeffb116f
No known key found for this signature in database
GPG key ID: 6E2A6A5775F91318
2 changed files with 2 additions and 2 deletions

View file

@ -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]

View file

@ -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