Files
HowBadIsMyBatch/src/SymptomsCausedByVaccines/HtmlUtils.py
2023-10-10 11:04:38 +02:00

15 lines
449 B
Python

def getVaccineOptions(vaccines):
return ['<option hidden disabled selected value>Select Vaccine</option>'] + _getOptions(vaccines)
def getSymptomOptions(symptoms):
return ['<option hidden disabled selected value>Select Symptom</option>'] + _getOptions(symptoms)
def _getOptions(values):
return [_getOption(value) for value in values]
def _getOption(value):
return '<option value="{value}">{value}</option>'.format(value=value)