Skip to content

Commit

Permalink
Correct refactoring error that broke Queue resource
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Campbell committed Nov 10, 2020
1 parent 5c5a100 commit ffc049b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def get(self, queues: str) -> tuple:
for queue in queues_requested:
queue_list.append(ECNQueue.Queue(queue).toJson())

return (queues, 200)
return (queue_list, 200)

class QueueList(Resource):
@jwt_required
Expand Down Expand Up @@ -186,7 +186,7 @@ def get(self) -> list:
api.add_resource(Login, "/login")
api.add_resource(RefreshAccessToken, "/tokens/refresh")
api.add_resource(Item, "/api/<string:queue>/<int:number>")
api.add_resource(Queue, "/api/<string:queue>")
api.add_resource(Queue, "/api/<string:queues>")
api.add_resource(QueueList, "/api/get_queues")

if __name__ == "__main__":
Expand Down

0 comments on commit ffc049b

Please sign in to comment.