aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-01-08 13:57:09 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-01-08 13:57:09 -0800
commit0e344762101e9cb1f57a139c726fd50f2364ad51 (patch)
tree1c3e891000c224ba15a81d6d9e9a5f9f082696de
parent35f3f55aac364373ba16191abdb3c0c585249245 (diff)
downloadfatcat-0e344762101e9cb1f57a139c726fd50f2364ad51.tar.gz
fatcat-0e344762101e9cb1f57a139c726fd50f2364ad51.zip
decode GIT_REVISION earlier
-rw-r--r--python/fatcat_web/templates/base.html2
-rw-r--r--python/fatcat_web/web_config.py2
2 files changed, 2 insertions, 2 deletions
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 @@
<a class="item" href="https://guide.{{ config.FATCAT_DOMAIN }}/sources.html">Sources</a>
<a class="item" href="{% if config.FATCAT_DOMAIN == "fatcat.wiki" %}https://stats.uptimerobot.com/GM9YNSrB0{% elif config.FATCAT_DOMAIN =="qa.fatcat.wiki" %}https://stats.uptimerobot.com/WQ8wAUREA{% else %}#{% endif %}">Status</a>
<a class="item" href="https://guide.{{ config.FATCAT_DOMAIN }}/bulk_exports.html">Bulk Exports</a>
- <a class="item" href="https://github.com/internetarchive/fatcat/">Source Code (<code>{{ config.GIT_REVISION.decode() }}</code>)</a>
+ <a class="item" href="https://github.com/internetarchive/fatcat/">Source Code (<code>{{ config.GIT_REVISION }}</code>)</a>
</div>
</div>
</footer>
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")