diff options
Diffstat (limited to 'youtube/__init__.py')
-rw-r--r-- | youtube/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/youtube/__init__.py b/youtube/__init__.py index b27496d..f935f1e 100644 --- a/youtube/__init__.py +++ b/youtube/__init__.py @@ -1,4 +1,5 @@ from youtube import util +from .get_app_version import app_version import flask from flask import request import settings @@ -32,6 +33,10 @@ def inject_theme_preference(): return { 'theme_path': '/youtube.com/static/' + theme_names[settings.theme] + '.css', 'settings': settings, + # Detect version + 'current_version': app_version()['version'], + 'current_branch': app_version()['branch'], + 'current_commit': app_version()['commit'], } |