Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

download_and_parse() alters args list #44

Open
aapris opened this issue Jun 8, 2024 · 0 comments
Open

download_and_parse() alters args list #44

aapris opened this issue Jun 8, 2024 · 0 comments

Comments

@aapris
Copy link

aapris commented Jun 8, 2024

download_and_parse(query_id, args=None) removes "timeseries=True" from args if this item is in the list.

This can lead to confusion, if a developer reuses the args list in subsequent queries (for example when requesting more than 168 hours of data).

args.remove("timeseries=True")

I suggest making a copy of the list, something like this:

    if args is None:
        args = []
    else:
        args = args.copy()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant