Skip to content

Commit

Permalink
Fixed Air quality index type is ignored (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier committed Dec 16, 2019
1 parent ebbf94f commit cd6798b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nabairqualityd/templates/nabairqualityd/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ <h5 class="card-title">{% trans "Air quality" %} - {{ config.localisation }}</h5
<div class="col-6">
<select name="index_airquality" id="airqualityIndexSel">
{% if config.index_airquality is None %}<option disabled selected value></option>{% endif %}
<option value="aqi" {% if config.index_airquality == 'aqi' %}selected{% endif %}>AQI</option>
<option value="pm25" {% if config.index_airquality == 'pm25' %}selected{% endif %}>PM 2.5</option>
<option value="0" {% if config.index_airquality == '0' %}selected{% endif %}>AQI</option>
<option value="1" {% if config.index_airquality == '1' %}selected{% endif %}>PM 2.5</option>
</select>
</div>
</div>
Expand Down

0 comments on commit cd6798b

Please sign in to comment.