Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Sep 23, 2024
1 parent 7b2135b commit b7470b8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion rules/retrieve.smk
Original file line number Diff line number Diff line change
Expand Up @@ -363,11 +363,14 @@ if config["enable"]["retrieve"]:
unpack_archive(params["zip"], output_folder)

for f in os.listdir(output_folder):
if f.startswith("API_SP.URB.TOTL.IN.ZS_DS2_en_csv_v2_") and f.endswith(".csv"):
if f.startswith(
"API_SP.URB.TOTL.IN.ZS_DS2_en_csv_v2_"
) and f.endswith(".csv"):
os.rename(os.path.join(output_folder, f), output.gpkg)
break



if config["enable"]["retrieve"]:

# Download directly from naciscdn.org which is a redirect from naturalearth.com
Expand Down

0 comments on commit b7470b8

Please sign in to comment.