X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/132297f0be27da544304733bd24da32282310235..1c4c468783e5f380324c29ebc3b2c452da8cc2a0:/redakcja/context_processors.py diff --git a/redakcja/context_processors.py b/redakcja/context_processors.py index aec6df71..feba9e9f 100644 --- a/redakcja/context_processors.py +++ b/redakcja/context_processors.py @@ -1,4 +1,5 @@ -# -*- coding: utf-8 +# -*- coding: utf-8 -*- + def settings(request): from django.conf import settings @@ -7,7 +8,7 @@ def settings(request): import subprocess process = subprocess.Popen(["git", "show", "--oneline"], stdout=subprocess.PIPE) data, _err = process.communicate() - # get app version + # get app version VERSION = data.splitlines()[0].split()[0] else: VERSION = ''