Remove slashes from cities

main
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:
hashtag = hashtag.lower().strip()
hashtag = hashtag.replace(' & ', ' and ')
hashtag = hashtag.replace('/', '')
hashtag2 = hashtag.replace('-', '').replace(' ', '')
city_filename = base_dir + '/tags/' + hashtag2 + '.category'

View File

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

View File

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