initial support of subviews
This commit is contained in:
parent
d0d152b10c
commit
65a21b2c2d
1 changed files with 4 additions and 3 deletions
|
|
@ -234,10 +234,11 @@ def format_weather_data(format_line, location, override_location, full_address,
|
|||
|
||||
if format_line == "j1":
|
||||
return render_json(data['data'])
|
||||
if format_line == "v2":
|
||||
if format_line[:2] == "v2":
|
||||
return spark.main(location,
|
||||
override_location=override_location,
|
||||
full_address=full_address, data=data)
|
||||
override_location=override_location,
|
||||
full_address=full_address, data=data,
|
||||
view=format_line)
|
||||
|
||||
current_condition = data['data']['current_condition'][0]
|
||||
current_condition['location'] = location
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue