Put currencies into a sorted list

This commit is contained in:
bashrc committed 2021-08-07 18:48:13 +01:00
1 parent a2b2154312
commit 7360ebaccd
1 file changed
+5 -2
+5 -2
View File
@@ -395,10 +395,13 @@ def htmlNewPost(cssCache: {}, mediaInstance: bool, translate: {},
currencies = getCurrencies()
extraFields += ' <select id="themeDropdown" ' + \
'name="itemCurrency" class="theme">'
currencyList = []
for symbol, currName in currencies.items():
currencyList.append(currName + ' ' + symbol)
currencyList.sort()
for currName in currencyList:
extraFields += ' <option value="' + \
currName + '">' + \
currName + ' ' + symbol + '</option>'
currName + '">' + currName + '</option>'
extraFields += '</div>\n'