FIX #e585f6057b
All checks were successful
buildbot/tox Build done.

This commit is contained in:
2021-01-07 13:40:55 +01:00
parent e585f6057b
commit 3a538e45bf

View File

@@ -268,14 +268,16 @@ class BasicWorkflow(object):
if heaviest_flag:
last_status = heaviest_flag.status
if last_status.code.startswith('publishing_'):
flags = event.flags.filter(status__code='accepted')
flags.append(heaviest_flag)
flags = []
flags += event.flags.filter(status__code='accepted')
flags += heaviest_flag
elif last_status.code.startswith('published_'):
flags = []
if event.flags.filter(status__code='publishing').exists():
flags = event.flags.filter(status__code='publishing')
flags += event.flags.filter(status__code='publishing')
else:
flags = event.flags.filter(status__code='accepted')
flags.append(heaviest_flag)
flags += event.flags.filter(status__code='accepted')
flags += heaviest_flag
elif last_status.code.startswith('clear'):
flags = [heaviest_flag]
flags += event.flags.filter(status__code__in=('canceled', 'realized'))