Changeset - d6a5e1c072ce
[Not reviewed]
default
0 2 0
Dennis Fink - 10 years ago 2015-07-08 22:21:30

call reload_json from __init__.py when creating the app instead of when
importing active.py
2 files changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
spaceapi/__init__.py
Show inline comments
 
@@ -51,4 +51,7 @@ def create_app():
 
    from .sensors import sensors_views
 
    app.register_blueprint(sensors_views, url_prefix='/sensors')
 

	
 
    from .active import reload_json
 
    reload_json()
 

	
 
	return app
spaceapi/active.py
Show inline comments
 
@@ -28,7 +28,6 @@ def reload_json():
 
    else:
 
        active_json = copy.deepcopy(default_json)
 

	
 
reload_json()
 

	
 
def save_last_state():
 

	
0 comments (0 inline, 0 general)