diff --git a/app.py b/app.py index 29d7310..028dc53 100644 --- a/app.py +++ b/app.py @@ -48,7 +48,7 @@ def cleanhtml(raw_html): -vidzy_version = "v0.1.3" +VIDZY_VERSION = "v0.1.3" UPLOAD_FOLDER = 'static/uploads' ALLOWED_EXTENSIONS = {'mp4', 'webm'} @@ -57,7 +57,7 @@ def cleanhtml(raw_html): app = Flask(__name__, static_url_path='') csrf = CSRFProtect(app) -app.jinja_env.globals.update(vidzy_version=vidzy_version) +app.jinja_env.globals.update(VIDZY_VERSION=VIDZY_VERSION) app.config.from_pyfile('settings.py', silent=False) app.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER @@ -681,7 +681,7 @@ def instance_info(): "title": "Vidzy", "short_description": "The testing server operated by Vidzy", "description": "", - "version": vidzy_version + "version": VIDZY_VERSION } resp = Response(json.dumps(info)) diff --git a/templates/about.html b/templates/about.html index 775b8e6..3894016 100644 --- a/templates/about.html +++ b/templates/about.html @@ -5,5 +5,5 @@
Approximate number of users: {{total_accounts}} (only admins can see the exact number)
About
View source code
{{vidzy_version}}
About
View source code
{{VIDZY_VERSION}}