diff options
Diffstat (limited to 'testapi')
-rw-r--r-- | testapi/testapi-client/testapiclient/utils/url_parse.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/testapi/testapi-client/testapiclient/utils/url_parse.py b/testapi/testapi-client/testapiclient/utils/url_parse.py index fbc503a..9f99a46 100644 --- a/testapi/testapi-client/testapiclient/utils/url_parse.py +++ b/testapi/testapi-client/testapiclient/utils/url_parse.py @@ -28,12 +28,12 @@ def get_queries(queries, parsed_args): return {query: getattr(parsed_args, query) for query in queries - if hasattr(parsed_args, query)} + if hasattr(parsed_args, query) and getattr(parsed_args, query)} def query_by(base, queries, parsed_args): - return query_join(base, - **get_queries(queries, parsed_args)) + qs = get_queries(queries, parsed_args) + return query_join(base, **qs) if qs else base def url_format(base, parsed_args): |