diff --git a/birb_scheduler_teller/views/assignment_view.py b/birb_scheduler_teller/views/assignment_view.py index d934673..9a2135f 100644 --- a/birb_scheduler_teller/views/assignment_view.py +++ b/birb_scheduler_teller/views/assignment_view.py @@ -58,6 +58,9 @@ class AssignmentView(FlaskView): if not target_site: default_target = redis_client.get('DEFAULT:SCHEDULED') + if not default_target: + default_target = current_app.config['DEFAULT_WHILE_NOT_DEFINED'][0] + if default_target: target_site = default_target.decode('utf-8') redis_client.set(schedule_store_key, default_target)