refactoring
This commit is contained in:
10
src/HtmlUtils.py
Normal file
10
src/HtmlUtils.py
Normal file
@@ -0,0 +1,10 @@
|
||||
def getCountryOptions(countries):
|
||||
return ['<option value="Global" selected>Global</option>'] + _getCountryOptions(countries)
|
||||
|
||||
|
||||
def _getCountryOptions(countries):
|
||||
return [_getCountryOption(country) for country in countries]
|
||||
|
||||
|
||||
def _getCountryOption(country):
|
||||
return '<option value="{country}">{country}</option>'.format(country=country)
|
||||
Reference in New Issue
Block a user