nefino-geosync 0.2.0__py3-none-any.whl → 0.2.1__py3-none-any.whl

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.

@@ -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)
@@ -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
@@ -3,7 +3,7 @@ nefino_geosync/access_rule_filter.py,sha256=mCSMBrXNkGojiW2Ly8D9w46emaigp9bkDSW7
3
3
  nefino_geosync/api_client.py,sha256=ylVVEC1f6N8P77VVZ5RLp3lieVnLmrepMO1IjnBGU4o,3617
4
4
  nefino_geosync/compose_requests.py,sha256=oiVApnl-cxDBFeIoxaU_UREI4EXOHSCsad0i65Uh1BM,3740
5
5
  nefino_geosync/config.py,sha256=thVVMsw4-CGgYJj63sX6nQShSZ9n9zEuz_9RCNL1tIM,3491
6
- nefino_geosync/download_analysis.py,sha256=KysIFyDOK-W3iEXQHIVqKrZtpYhMn8SuoAOPoy45rGc,4689
6
+ nefino_geosync/download_analysis.py,sha256=Y4By5U5-ohks6VzjgSd_8RqZ_gIocukgWlN51NXdq_k,4751
7
7
  nefino_geosync/download_completed_analyses.py,sha256=ggCZGi8mOL2imT8iwfR8yTsdvnKHA6jyw6Dwil1TLU0,866
8
8
  nefino_geosync/get_downloadable_analyses.py,sha256=Om0Q6F7xRze-jvo865XN2qzRT91zmuA-TAKYmeVsGIE,1651
9
9
  nefino_geosync/graphql_errors.py,sha256=n92jAicdfeH7weUo1I1gTIC2JQKDybYlD9BVredSHQw,1512
@@ -14,8 +14,8 @@ nefino_geosync/schema.json,sha256=yBHwVYsfF1ybUFthGUuNpkdGkBdx_DcqZgq0ul4TIYo,71
14
14
  nefino_geosync/schema.py,sha256=ALP9_2sKh75sXrYDmTiBEBLygZMiZF-B8hahcYYJZrE,9203
15
15
  nefino_geosync/start_analyses.py,sha256=xWicbXvJybKb8Yi756M2cRpfys0bzmri9_eByAot0sE,2063
16
16
  nefino_geosync/storage.py,sha256=_fnE-zQnNSMfgoUratUcDGbMUJA-oatf55AXbuftFyI,1424
17
- nefino_geosync-0.2.0.dist-info/METADATA,sha256=u_xhglgwTiMK2VJoRMSC1KcfyH6J0VDrR0QSXBHFpvs,15496
18
- nefino_geosync-0.2.0.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
19
- nefino_geosync-0.2.0.dist-info/entry_points.txt,sha256=zZ7Zrx1MyxZKd2iGrvRmHjYzY5C2EMgqY5TqzNOGYqo,59
20
- nefino_geosync-0.2.0.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
21
- nefino_geosync-0.2.0.dist-info/RECORD,,
17
+ nefino_geosync-0.2.1.dist-info/METADATA,sha256=P4iOxGtvCM9xkS3X1DszkbW-2U46RkDz8uBYYkRjG4Q,15496
18
+ nefino_geosync-0.2.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
19
+ nefino_geosync-0.2.1.dist-info/entry_points.txt,sha256=zZ7Zrx1MyxZKd2iGrvRmHjYzY5C2EMgqY5TqzNOGYqo,59
20
+ nefino_geosync-0.2.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
21
+ nefino_geosync-0.2.1.dist-info/RECORD,,