Check for new version

This commit is contained in:
Leigh Morresi
2021-03-01 15:09:37 +01:00
parent 5b2fda1a6e
commit b31bf34890
5 changed files with 43 additions and 15 deletions

View File

@@ -52,7 +52,11 @@ def main(argv):
@app.context_processor
def inject_version():
return dict(version=datastore.data['tag'])
return dict(version=datastore.data['version_tag'])
@app.context_processor
def inject_new_version_available():
return dict(new_version_available=app.config['NEW_VERSION_AVAILABLE'])
if ssl_mode:
# @todo finalise SSL config, but this should get you in the right direction if you need it.