added possibility of usage _any_ so from any status will be changed to one specific

This commit is contained in:
Jakub Trllo 2019-02-14 11:54:47 +01:00
parent af24300059
commit 90187e94b3

View file

@ -312,7 +312,7 @@ class AppAction(BaseHandler):
actual_status = entity['status']['name'].lower()
next_status_name = None
for key, value in statuses.items():
if actual_status in value:
if actual_status in value or '_any_' in value:
next_status_name = key
break