Skip to content

Commit

Permalink
Merge pull request #84 from ECN/enhancement-allow-loading-many-queues…
Browse files Browse the repository at this point in the history
…-from-url

Allow multiple queues to be selected from URL
  • Loading branch information
benne238 authored Oct 23, 2020
2 parents fb71878 + a388e71 commit a4a701d
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 a4a701d

Please sign in to comment.