Closed xakepnz closed 3 years ago
@xakepnz interesting and thanks for reporting this! I’ll take a look at why it’s downloading multiple times - it shouldn’t be.
As far as the update functionality, I can definitely add that back in. Please create another issue for that and I’ll add it in the next release.
@xakepnz I believe I have a fix for this and should be pushing a change soon.
I want to utilise local config as much as I can, to help with speed. When you had the .update() method I would utilise that. Now with the latest update, I need to build my own "update function" to overwrite the existing config, and any normal call, would just use the local json.
I've tried updating as below (fresh virtualenv) using pyattck-4.0.3 on Python 3.9.2 from pip:
Only now begins the download of the JSON files, and appears to download the same files 6 times:
I believe the issue may be from the iteration over the JSON file names, and instead of a single-download it's downloading multiple? Am I wrong? And how do I try to implement an "update" func/method to only overwrite the json that exists using the new version 4.
Ref: https://github.com/swimlane/pyattck/blob/719e3582810c1728f6e7a6e020ec9249526c4cda/pyattck/configuration.py#L50
PS: Great framework!
Thanks