moved views to view/

v2
Igor Chubin 5 years ago
parent ed966407e0
commit e29e5784da

@ -23,7 +23,7 @@ except ImportError:
pass
from constants import WWO_CODE, WEATHER_SYMBOL, WIND_DIRECTION
from weather_data import get_weather_data
import spark
from . import v2
PRECONFIGURED_FORMAT = {
'1': u'%c %t',
@ -249,7 +249,7 @@ def format_weather_data(format_line, location, override_location, full_address,
if format_line == "j1":
return render_json(data['data'])
if format_line[:2] == "v2":
return spark.main(location,
return v2.main(location,
override_location=override_location,
full_address=full_address, data=data,
view=format_line)

@ -42,7 +42,7 @@ from babel.dates import format_datetime
from globals import WWO_KEY
import constants
import translations
import wttr_line
from . import line as wttr_line
if not sys.version_info >= (3, 0):
reload(sys) # noqa: F821
Loading…
Cancel
Save