From 0e344762101e9cb1f57a139c726fd50f2364ad51 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 8 Jan 2019 13:57:09 -0800 Subject: decode GIT_REVISION earlier --- python/fatcat_web/templates/base.html | 2 +- python/fatcat_web/web_config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/templates/base.html b/python/fatcat_web/templates/base.html index 3b324cba..cce841e5 100644 --- a/python/fatcat_web/templates/base.html +++ b/python/fatcat_web/templates/base.html @@ -80,7 +80,7 @@ Sources Status Bulk Exports - Source Code ({{ config.GIT_REVISION.decode() }}) + Source Code ({{ config.GIT_REVISION }}) diff --git a/python/fatcat_web/web_config.py b/python/fatcat_web/web_config.py index 0ae43a3a..cbe519b0 100644 --- a/python/fatcat_web/web_config.py +++ b/python/fatcat_web/web_config.py @@ -16,7 +16,7 @@ import subprocess basedir = os.path.abspath(os.path.dirname(__file__)) class Config(object): - GIT_REVISION = subprocess.check_output(["git", "describe", "--always"]).strip() + GIT_REVISION = subprocess.check_output(["git", "describe", "--always"]).strip().decode('utf-8') # This is, effectively, the QA/PROD flag FATCAT_DOMAIN = os.environ.get("FATCAT_DOMAIN", default="qa.fatcat.wiki") -- cgit v1.2.3