From 15ffe4ce088c07674c19f8e0c12c43b1621aba8b Mon Sep 17 00:00:00 2001 From: marcsello Date: Mon, 13 Dec 2021 01:49:05 +0100 Subject: [PATCH] Added default target to getter --- birb_scheduler_teller/views/assignment_view.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/birb_scheduler_teller/views/assignment_view.py b/birb_scheduler_teller/views/assignment_view.py index 78c8c34..6ff00ec 100644 --- a/birb_scheduler_teller/views/assignment_view.py +++ b/birb_scheduler_teller/views/assignment_view.py @@ -97,4 +97,6 @@ class AssignmentView(FlaskView): name = key[10:] current_scheduling_table[name] = target - return jsonify(current_scheduling_table) + default_target = redis_client.get('DEFAULT:SCHEDULED') + + return jsonify({"scheduling_table": current_scheduling_table, "default_target": default_target})