Skip to content

Commit 6ef0171

Browse files
committed
Fixed a bug 'has been in state X for Y days' (state_date)
- Legacy-Id: 1932
1 parent 0b7c0b9 commit 6ef0171

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ietf/idrfc/idrfc_wrapper.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,8 @@ def state_date(self):
374374
Q(comment_text__istartswith="Draft Added by ")|
375375
Q(comment_text__istartswith="State Changes to ")|
376376
Q(comment_text__istartswith="Sub state has been changed to ")|
377-
Q(comment_text__istartswith="State has been changed to ")).order_by('-id')[0].date
377+
Q(comment_text__istartswith="State has been changed to ")|
378+
Q(comment_text__istartswith="IESG has approved and state has been changed to")).order_by('-id')[0].date
378379
except IndexError:
379380
# should never happen -- return an obviously bogus date
380381
return date(1990,1,1)

0 commit comments

Comments
 (0)