Skip to content

Commit

Permalink
Merge pull request #2690 from ziv17/2687-fix
Browse files Browse the repository at this point in the history
Nullify heb and eng names in the yishuv_symbol=0 cities record
  • Loading branch information
atalyaalon committed Aug 25, 2024
2 parents 3d16187 + a05d7f6 commit 4a1bc56
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions anyway/parsers/cities.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ def get_city_data_chunks(self, url: str, chunk_size: int) -> Iterable[List[Dict[
# "napa": item[NAPA],
# "municipal_stance": item[MUNICIPAL_STANCE],
}
if city_entry["yishuv_symbol"] == 0:
city_entry["heb_name"] = None
city_entry["eng_name"] = None
chunk.append(city_entry)
if len(chunk) == chunk_size:
yield chunk
Expand Down

0 comments on commit 4a1bc56

Please sign in to comment.