Offline installation and searchable inputs

This commit is contained in:
Roei Ganor
2020-04-17 17:01:29 +03:00
committed by root
parent bd1eb3cce9
commit 483c767d26
60 changed files with 2675 additions and 7 deletions

View File

@ -100,4 +100,9 @@ def create_app(config=None):
setting = Setting()
return dict(SETTING=setting)
@app.context_processor
def inject_mode():
setting = app.config.get('OFFLINE_MODE', False)
return dict(OFFLINE_MODE=setting)
return app