Added default target to getter
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Pünkösd Marcell 2021-12-13 01:49:05 +01:00
parent c06a2aa110
commit 15ffe4ce08

View File

@ -97,4 +97,6 @@ class AssignmentView(FlaskView):
name = key[10:] name = key[10:]
current_scheduling_table[name] = target 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})