Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Jan 7, 2025
1 parent 0f51e30 commit f684b70
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def fetch_init_data(
if "orderDetails" in data and "files" in data["orderDetails"]:
for filedata in data["orderDetails"]["files"]:
if "fileId" in filedata and "+" not in filedata["fileId"]:
urls.append(f"{self.request_url}/{filedata["fileId"]}/data")
urls.append(f"{self.request_url}/{filedata['fileId']}/data")

log.debug(
f"Found {len(urls)} file(s) for init time '{it.strftime('%Y-%m-%d %H:%M')}' "
Expand Down Expand Up @@ -185,7 +185,7 @@ def _download(self, url: str) -> ResultE[pathlib.Path]:
"RAWDIR",
f"~/.local/cache/nwp/{self.repository().name}/{self.model().name}/raw",
),
) / f"{url.split("/")[-2]}.grib"
) / f"{url.split('/')[-2]}.grib"
).expanduser()

# Only download the file if not already present
Expand Down

0 comments on commit f684b70

Please sign in to comment.