Skip to content

Commit

Permalink
Allow multiple queues to be selected from URL
Browse files Browse the repository at this point in the history
  • Loading branch information
campb303 authored Oct 23, 2020
1 parent fb71878 commit a388e71
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions api/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,13 @@ def get(self, queue: str) -> str:
Returns:
str: JSON representation of the queue requested.
"""
return ECNQueue.Queue(queue).toJson()
queues_requested = queue.split("+")

queues = []
for queue in queues_requested:
queues.append(ECNQueue.Queue(queue).toJson())

return queues



Expand All @@ -62,4 +68,4 @@ def get(self, queue: str) -> str:


if __name__ == "__main__":
app.run()
app.run()

0 comments on commit a388e71

Please sign in to comment.