Skip to content

Commit

Permalink
use aoi_id as fallback instead if city
Browse files Browse the repository at this point in the history
  • Loading branch information
lubojr committed Oct 23, 2023
1 parent 3ca6999 commit 02a4eb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion generators/generate_indicators.py
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,8 @@ def handle_GeoDB_endpoint(config, endpoint, data, catalog):
city = "".join([c for c in city if c.isalpha() or c.isdigit() or c==' ']).rstrip()
# Additional check to see if city name is empty afterwards
if city == "" or city is None:
city = "undefined"
# use aoi_id as a fallback unique id instead of city
city = key
if city not in cities:
cities.append(city)
min_date = min(times)
Expand Down

0 comments on commit 02a4eb2

Please sign in to comment.