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

This commit is contained in:
Pünkösd Marcell 2021-12-10 23:57:28 +01:00
parent d0d017a4f7
commit 5ca2ad5d1c

View File

@ -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)