Closed elray1 closed 2 years ago
minor request for the units in this drop-down menu to be sorted. example: https://www.zoltardata.com/forecast/19778
solution: this line in forecastapp/views.py needs to change `.nameto_.abbreviationto match forecast_app/templates/forecast_detail_data_snippet.html usingunit.abbreviation`:
to
to match forecast_app/templates/forecast_detail_data_snippet.html using
context['found_units'] = sorted(found_units, key=lambda _: _.abbreviation)
minor request for the units in this drop-down menu to be sorted. example: https://www.zoltardata.com/forecast/19778
solution: this line in forecastapp/views.py needs to change `.name
to
_.abbreviationto match forecast_app/templates/forecast_detail_data_snippet.html using
unit.abbreviation`: