Remove slashes from cities

merge-requests/30/head
Bob Mottram 2023-09-09 10:31:15 +01:00
parent debc48cc5f
commit b78e38a26c
3 changed files with 4 additions and 2 deletions

View File

@ -63,6 +63,7 @@ def load_city_hashtags(base_dir: str, translate: {}) -> None:
for hashtag in cities: for hashtag in cities:
hashtag = hashtag.lower().strip() hashtag = hashtag.lower().strip()
hashtag = hashtag.replace(' & ', ' and ') hashtag = hashtag.replace(' & ', ' and ')
hashtag = hashtag.replace('/', '')
hashtag2 = hashtag.replace('-', '').replace(' ', '') hashtag2 = hashtag.replace('-', '').replace(' ', '')
city_filename = base_dir + '/tags/' + hashtag2 + '.category' city_filename = base_dir + '/tags/' + hashtag2 + '.category'

View File

@ -426,7 +426,7 @@ York
Modena Modena
Thamesdown Thamesdown
Leganés Leganés
Mülheim/Ruhr Mülheim
Cagliari Cagliari
Miskolc Miskolc
Genève Genève

View File

@ -24,7 +24,8 @@ Denver
Washington Washington
Nashville-Davidson Nashville-Davidson
Baltimore Baltimore
Louisville/Jefferson Louisville
Jefferson
Portland Portland
Oklahoma Oklahoma
Milwaukee Milwaukee