aboutsummaryrefslogtreecommitdiffstats
path: root/youtube/__init__.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2020-12-17 15:31:11 -0500
committerJesús <heckyel@hyperbola.info>2020-12-17 15:31:11 -0500
commita7c1f2a34ec5592597d7b09c4b240dfcf968273f (patch)
tree6be5fceaef647303b1f7368bfa18d0ec2af2034b /youtube/__init__.py
parent5edcaa4f9dcfd005f3ed633ddcb5b432e954877e (diff)
downloadyt-local-a7c1f2a34ec5592597d7b09c4b240dfcf968273f.tar.lz
yt-local-a7c1f2a34ec5592597d7b09c4b240dfcf968273f.tar.xz
yt-local-a7c1f2a34ec5592597d7b09c4b240dfcf968273f.zip
Add get_app_version and version
Diffstat (limited to 'youtube/__init__.py')
-rw-r--r--youtube/__init__.py5
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'],
}