Skip to content

Commit

Permalink
Nullify heb and eng names in the yishuv_symbol=0 cities record
Browse files Browse the repository at this point in the history
  • Loading branch information
ziv17 committed Aug 23, 2024
1 parent 3d16187 commit a05d7f6
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 a05d7f6

Please sign in to comment.