fix: Check state correctly

This commit is contained in:
Jennifer Richards 2023-08-10 17:44:37 -03:00
parent 8b636216d0
commit ab99972d76
No known key found for this signature in database
GPG key ID: 9B2BF5C5ADDA6A6E

View file

@ -532,7 +532,7 @@ def update_docs_from_rfc_index(
doc.stream = stream_mapping[stream]
rfc_changes.append(f"{verbed} stream to {doc.stream}")
if doc.get_state(rfc_published_state.type) != rfc_published_state:
if doc.get_state() != rfc_published_state:
doc.set_state(rfc_published_state)
rfc_changes.append(f"{verbed} {rfc_published_state.type.label} to {rfc_published_state}")