nefino-geosync 0.2.0__tar.gz → 0.2.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nefino-geosync might be problematic. Click here for more details.

Files changed (27) hide show
  1. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/PKG-INFO +1 -1
  2. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/download_analysis.py +4 -2
  3. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/.devcontainer/devcontainer.json +0 -0
  4. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/.github/release.yml +0 -0
  5. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/.github/workflows/pr-label-check.yml +0 -0
  6. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/.github/workflows/publish.yml +0 -0
  7. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/.gitignore +0 -0
  8. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/.vscode/launch.json +0 -0
  9. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/.vscode/settings.json +0 -0
  10. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/LICENSE +0 -0
  11. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/README.md +0 -0
  12. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/__init__.py +0 -0
  13. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/access_rule_filter.py +0 -0
  14. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/api_client.py +0 -0
  15. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/compose_requests.py +0 -0
  16. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/config.py +0 -0
  17. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/download_completed_analyses.py +0 -0
  18. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/get_downloadable_analyses.py +0 -0
  19. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/graphql_errors.py +0 -0
  20. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/journal.py +0 -0
  21. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/parse_args.py +0 -0
  22. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/run.py +0 -0
  23. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/schema.json +0 -0
  24. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/schema.py +0 -0
  25. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/start_analyses.py +0 -0
  26. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/nefino_geosync/storage.py +0 -0
  27. {nefino_geosync-0.2.0 → nefino_geosync-0.2.1}/pyproject.toml +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nefino-geosync
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
  Summary: Python package to access geographical data from Nefino.LI Geo
5
5
  Project-URL: Application, https://nefino.li
6
6
  Project-URL: API, https://api.nefino.li
@@ -15,8 +15,10 @@ def download_analysis(analysis: AnalysisResult) -> None:
15
15
  journal = Journal.singleton()
16
16
  download_dir = get_download_directory(analysis.pk)
17
17
  download_file = os.path.join(download_dir, "download.zip")
18
- if not os.path.exists(download_file):
19
- urlretrieve(analysis.url.replace(" ", "%20"), download_file)
18
+ if os.path.exists(download_file):
19
+ # remove any failed download
20
+ os.remove(download_file)
21
+ urlretrieve(analysis.url.replace(" ", "%20"), download_file)
20
22
  with zipfile.ZipFile(download_file, "r") as zip_ref:
21
23
  zip_ref.extractall(download_dir)
22
24
  zip_root = get_zip_root(download_dir)
File without changes
File without changes