moved views to view/
This commit is contained in:
parent
ed966407e0
commit
e29e5784da
3 changed files with 3 additions and 3 deletions
0
lib/view/__init__.py
Normal file
0
lib/view/__init__.py
Normal file
|
|
@ -23,7 +23,7 @@ except ImportError:
|
||||||
pass
|
pass
|
||||||
from constants import WWO_CODE, WEATHER_SYMBOL, WIND_DIRECTION
|
from constants import WWO_CODE, WEATHER_SYMBOL, WIND_DIRECTION
|
||||||
from weather_data import get_weather_data
|
from weather_data import get_weather_data
|
||||||
import spark
|
from . import v2
|
||||||
|
|
||||||
PRECONFIGURED_FORMAT = {
|
PRECONFIGURED_FORMAT = {
|
||||||
'1': u'%c %t',
|
'1': u'%c %t',
|
||||||
|
|
@ -249,7 +249,7 @@ 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[:2] == "v2":
|
if format_line[:2] == "v2":
|
||||||
return spark.main(location,
|
return v2.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)
|
view=format_line)
|
||||||
|
|
@ -42,7 +42,7 @@ from babel.dates import format_datetime
|
||||||
from globals import WWO_KEY
|
from globals import WWO_KEY
|
||||||
import constants
|
import constants
|
||||||
import translations
|
import translations
|
||||||
import wttr_line
|
from . import line as wttr_line
|
||||||
|
|
||||||
if not sys.version_info >= (3, 0):
|
if not sys.version_info >= (3, 0):
|
||||||
reload(sys) # noqa: F821
|
reload(sys) # noqa: F821
|
||||||
Loading…
Add table
Reference in a new issue