From 5ca2ad5d1cee8f016c64b8dfce5d2b615572baf8 Mon Sep 17 00:00:00 2001 From: marcsello Date: Fri, 10 Dec 2021 23:57:28 +0100 Subject: [PATCH] Store anyways --- birb_scheduler_teller/views/assignment_view.py | 3 +++ 1 file changed, 3 insertions(+) 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)