This commit is contained in:
parent
67403c6f63
commit
c06a2aa110
@ -88,3 +88,13 @@ class AssignmentView(FlaskView):
|
||||
# Asking myself...
|
||||
|
||||
return jsonify(resp)
|
||||
|
||||
def get(self):
|
||||
current_scheduling_table = {}
|
||||
for key in redis_client.keys("SCHEDULED:*"):
|
||||
target = redis_client.get(key)
|
||||
if target:
|
||||
name = key[10:]
|
||||
current_scheduling_table[name] = target
|
||||
|
||||
return jsonify(current_scheduling_table)
|
||||
|
Loading…
Reference in New Issue
Block a user