fix
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-12-11 00:02:36 +01:00
parent 5ca2ad5d1c
commit f6d36a9f87

View File

@ -58,11 +58,14 @@ 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 default_target:
default_target = default_target.decode('utf-8')
if not default_target: if not default_target:
default_target = current_app.config['DEFAULT_WHILE_NOT_DEFINED'][0] 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
redis_client.set(schedule_store_key, default_target) redis_client.set(schedule_store_key, default_target)
# Update (or set) TTL # Update (or set) TTL