Sort cities

merge-requests/30/head
Bob Mottram 2021-05-09 22:58:29 +01:00
parent f22e6ee20a
commit 45ff85c6de
1 changed files with 1 additions and 0 deletions

View File

@ -1787,6 +1787,7 @@ def htmlEditProfile(cssCache: {}, translate: {}, baseDir: str, path: str,
cities = []
with open(locationsFilename, "r") as f:
cities = f.readlines()
cities.sort()
editProfileForm += ' <select id="cityDropdown" ' + \
'name="cityDropdown" class="theme">\n'
city = city.lower()