@@ -6,25 +6,25 @@ def find_discrepancies():
66
77 title = "Internet-Drafts that have been sent to the RFC Editor but do not have an RFC Editor state"
88
9- docs = Document .objects .filter (states__in = list (State .objects .filter (used = True , type = "draft-iesg" , slug__in = ("ann" , "rfcqueue" )))).exclude (states__in = list (State .objects .filter (used = True , type = "draft-rfceditor" )))
9+ docs = Document .objects .filter (states__in = list (State .objects .filter (used = True , type = "draft-iesg" , slug__in = ("ann" , "rfcqueue" )))).exclude (states__in = list (State .objects .filter (used = True , type = "draft-rfceditor" ))). distinct ()
1010
1111 res .append ((title , docs ))
1212
1313 title = "Internet-Drafts that have the IANA Action state \" In Progress\" but do not have a \" IANA\" RFC-Editor state/tag"
1414
15- docs = Document .objects .filter (states__in = list (State .objects .filter (used = True , type = "draft-iana-action" , slug__in = ("inprog" ,)))).exclude (tags = "iana" ).exclude (states__in = list (State .objects .filter (used = True , type = "draft-rfceditor" , slug = "iana" )))
15+ docs = Document .objects .filter (states__in = list (State .objects .filter (used = True , type = "draft-iana-action" , slug__in = ("inprog" ,)))).exclude (tags = "iana" ).exclude (states__in = list (State .objects .filter (used = True , type = "draft-rfceditor" , slug = "iana" ))). distinct ()
1616
1717 res .append ((title , docs ))
1818
1919 title = "Internet-Drafts that have the IANA Action state \" Waiting on RFC Editor\" or \" RFC-Ed-Ack\" but are in the RFC Editor state \" IANA\" /tagged with \" IANA\" "
2020
21- docs = Document .objects .filter (states__in = list (State .objects .filter (used = True , type = "draft-iana-action" , slug__in = ("waitrfc" , "rfcedack" )))).filter (models .Q (tags = "iana" ) | models .Q (states__in = list (State .objects .filter (used = True , type = "draft-rfceditor" , slug = "iana" ))))
21+ docs = Document .objects .filter (states__in = list (State .objects .filter (used = True , type = "draft-iana-action" , slug__in = ("waitrfc" , "rfcedack" )))).filter (models .Q (tags = "iana" ) | models .Q (states__in = list (State .objects .filter (used = True , type = "draft-rfceditor" , slug = "iana" )))). distinct ()
2222
2323 res .append ((title , docs ))
2424
2525 title = "Internet-Drafts that have a state other than \" RFC Ed Queue\" , \" RFC Published\" or \" Sent to the RFC Editor\" and have an RFC Editor or IANA Action state"
2626
27- docs = Document .objects .exclude (states__in = list (State .objects .filter (used = True , type = "draft-iesg" , slug__in = ("rfcqueue" , "pub" ))) + list (State .objects .filter (used = True , type__in = ("draft-stream-iab" , "draft-stream-ise" , "draft-stream-irtf" ), slug = "rfc-edit" ))).filter (states__in = list (State .objects .filter (used = True , type__in = ("draft-iana-action" , "draft-rfceditor" ))))
27+ docs = Document .objects .exclude (states__in = list (State .objects .filter (used = True , type = "draft-iesg" , slug__in = ("rfcqueue" , "pub" ))) + list (State .objects .filter (used = True , type__in = ("draft-stream-iab" , "draft-stream-ise" , "draft-stream-irtf" ), slug = "rfc-edit" ))).filter (states__in = list (State .objects .filter (used = True , type__in = ("draft-iana-action" , "draft-rfceditor" )))). distinct ()
2828
2929 res .append ((title , docs ))
3030
0 commit comments