Skip to content

Commit

Permalink
Resolve minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ridoo committed Oct 13, 2023
1 parent 15e4d45 commit 37be03a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geonode/storage/data_retriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,14 +221,14 @@ def _unzip(self, zip_name: str) -> Mapping:
existing = self.file_paths[f"{ext}_file"]
self.file_paths[f"{ext}_file"] = [
Path(str(_file)),
*(existing if type(existing) == list else [existing]),
*(existing if isinstance(existing, list) else [existing]),
]
else:
self.file_paths[f"{ext}_file"] = Path(str(_file))

tmp = self.file_paths.copy()
for key, value in self.file_paths.items():
if type(value) == list:
if isinstance(value, list):
for index, file_path in enumerate(value):
n = f"{key}_{index}" if index > 0 else key
tmp[n] = file_path
Expand Down

0 comments on commit 37be03a

Please sign in to comment.