This commit is contained in:
parent
d0d017a4f7
commit
5ca2ad5d1c
@ -58,6 +58,9 @@ class AssignmentView(FlaskView):
|
|||||||
if not target_site:
|
if not target_site:
|
||||||
default_target = redis_client.get('DEFAULT:SCHEDULED')
|
default_target = redis_client.get('DEFAULT:SCHEDULED')
|
||||||
|
|
||||||
|
if not default_target:
|
||||||
|
default_target = current_app.config['DEFAULT_WHILE_NOT_DEFINED'][0]
|
||||||
|
|
||||||
if default_target:
|
if default_target:
|
||||||
target_site = default_target.decode('utf-8')
|
target_site = default_target.decode('utf-8')
|
||||||
redis_client.set(schedule_store_key, default_target)
|
redis_client.set(schedule_store_key, default_target)
|
||||||
|
Loading…
Reference in New Issue
Block a user