fix: pass temp_unit from API to WeatherCard so F/C label matches converted values
This commit is contained in:
@@ -143,7 +143,7 @@ async def get_weather():
|
||||
card for row in rows
|
||||
if (card := weather_svc.parse_weather_card_data(row, temp_unit)) is not None
|
||||
]
|
||||
return jsonify({"locations": cards})
|
||||
return jsonify({"locations": cards, "temp_unit": temp_unit})
|
||||
|
||||
|
||||
@briefing_bp.route("/weather/geocode", methods=["POST"])
|
||||
|
||||
Reference in New Issue
Block a user