diff --git a/lib/wttr_line.py b/lib/wttr_line.py index 9c8a441..5ede450 100644 --- a/lib/wttr_line.py +++ b/lib/wttr_line.py @@ -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