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