Skip to content

Commit

Permalink
Merge pull request #2683 from ziv17/remove-space-from-city-name
Browse files Browse the repository at this point in the history
Trim white spaces from beginnint and end of city heb and eng names when loading from data.gov
  • Loading branch information
atalyaalon authored Aug 10, 2024
2 parents 45cdc7f + 5f41892 commit aab7251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anyway/parsers/cities.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@ def get_city_data_chunks(self, url: str, chunk_size: int) -> Iterable[List[Dict[
logging.debug(f"read {len(data['result']['records'])} records from {url}.")
for item in data["result"]["records"]:
city_entry = {
"heb_name": item[CITY_NAME],
"heb_name": item[CITY_NAME].lstrip().rstrip(),
"yishuv_symbol": item[YISHUV_SYMBOL],
"eng_name": item[CITY_NAME_EN],
"eng_name": item[CITY_NAME_EN].lstrip().rstrip(),
# "napa": item[NAPA],
# "municipal_stance": item[MUNICIPAL_STANCE],
}
Expand Down

0 comments on commit aab7251

Please sign in to comment.