Skip to content

Commit 1989218

Browse files
committed
Fixed the function has_rfc_editor_note() to return boolean -- datetime cannot be serialized as JSON, so /iesg/agenda/agenda.json was broken when there was an rfc-editor-note.
- Legacy-Id: 11138
1 parent 4d7f1bf commit 1989218

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

ietf/doc/models.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,7 @@ def active_ballot(self):
234234

235235
def has_rfc_editor_note(self):
236236
e = self.latest_event(WriteupDocEvent, type="changed_rfc_editor_note_text")
237-
if e and (e.text != ""):
238-
return e.time
239-
else:
240-
return None
237+
return e != None and (e.text != "")
241238

242239
def meeting_related(self):
243240
answer = False

0 commit comments

Comments
 (0)