From 55cb9ad3ba510ba26e711f844d42ed973163bb97 Mon Sep 17 00:00:00 2001 From: benne238 Date: Mon, 12 Jul 2021 09:57:36 -0400 Subject: [PATCH] Modified load_queues function in queue.py to accept *args (strings that represent the different queues) and a headers_only boolean value. Modified the docstring accordingly --- src/webqueue2api/parser/queue.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/src/webqueue2api/parser/queue.py b/src/webqueue2api/parser/queue.py index 60fece4..02a6d90 100644 --- a/src/webqueue2api/parser/queue.py +++ b/src/webqueue2api/parser/queue.py @@ -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 = []