|
|
@ -234,10 +234,11 @@ def format_weather_data(format_line, location, override_location, full_address,
|
|
|
|
|
|
|
|
|
|
|
|
if format_line == "j1":
|
|
|
|
if format_line == "j1":
|
|
|
|
return render_json(data['data'])
|
|
|
|
return render_json(data['data'])
|
|
|
|
if format_line == "v2":
|
|
|
|
if format_line[:2] == "v2":
|
|
|
|
return spark.main(location,
|
|
|
|
return spark.main(location,
|
|
|
|
override_location=override_location,
|
|
|
|
override_location=override_location,
|
|
|
|
full_address=full_address, data=data)
|
|
|
|
full_address=full_address, data=data,
|
|
|
|
|
|
|
|
view=format_line)
|
|
|
|
|
|
|
|
|
|
|
|
current_condition = data['data']['current_condition'][0]
|
|
|
|
current_condition = data['data']['current_condition'][0]
|
|
|
|
current_condition['location'] = location
|
|
|
|
current_condition['location'] = location
|
|
|
|