Skip to content

Commit

Permalink
Modified load_queues function in queue.py to accept *args (strings th…
Browse files Browse the repository at this point in the history
…at represent the different queues) and a headers_only boolean value. Modified the docstring accordingly
  • Loading branch information
benne238 committed Jul 12, 2021
1 parent 5a30f2d commit 55cb9ad
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/webqueue2api/parser/queue.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,18 @@ def get_queue_counts() -> list:

return sorted_queue_info

def load_queues() -> list:
"""Return a list of Queues for each queue.
def load_queues(*queues, headers_only: bool = True) -> list:
"""Returns a list of queues
Example:
[example]
Args:
headers_only (bool, optional): Weather or not the content of items in the queue should be loaded. Defaults to True.
*queues: List of strings that represent Queue names.
Returns:
list: list of Queues for each queue.
list: A list of all the queues that were given as arguments, or all of the queues if no queues were specified
"""
queues = []

Expand Down

0 comments on commit 55cb9ad

Please sign in to comment.