Fixed a bug in a queryset argument in all_id_text(); __in was not used, but the value given was a multi-row queryset.

- Legacy-Id: 12780
This commit is contained in:
Henrik Levkowetz 2017-02-02 12:24:27 +00:00
parent e94129641d
commit dca5c9c4d4

View file

@ -44,7 +44,9 @@ def all_id_txt():
inactive_states = ["pub", "watching", "dead"]
in_iesg_process = all_ids.exclude(states=State.objects.filter(type="draft", slug__in=["rfc","repl"])).filter(states__in=list(State.objects.filter(type="draft-iesg").exclude(slug__in=inactive_states))).only("name", "rev")
excludes = list(State.objects.filter(type="draft", slug__in=["rfc","repl"]))
includes = list(State.objects.filter(type="draft-iesg").exclude(slug__in=inactive_states))
in_iesg_process = all_ids.exclude(states__in=excludes).filter(states__in=includes).only("name", "rev")
# handle those actively in the IESG process
for d in in_iesg_process: