aboutsummaryrefslogtreecommitdiffstats
path: root/python/config.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-07-25 18:18:02 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-07-25 18:18:02 -0700
commit7014a2196837235226b077dd53ca28e117f0b2c2 (patch)
treeb278cd9ec5f02d2f44b7d6a2ce1a00ae683dc39f /python/config.py
parent376763ce13c86d78f5e30c5660bb3b767a0c44fc (diff)
downloadfatcat-7014a2196837235226b077dd53ca28e117f0b2c2.tar.gz
fatcat-7014a2196837235226b077dd53ca28e117f0b2c2.zip
include git revision in footer
Diffstat (limited to 'python/config.py')
-rw-r--r--python/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/config.py b/python/config.py
index 21c1e148..684734f0 100644
--- a/python/config.py
+++ b/python/config.py
@@ -1,5 +1,7 @@
import os
+import subprocess
+
basedir = os.path.abspath(os.path.dirname(__file__))
class Config(object):
@@ -8,6 +10,7 @@ class Config(object):
SQLALCHEMY_TRACK_MODIFICATIONS = False
ELASTIC_BACKEND = "http://search.qa.fatcat.wiki:8088"
ELASTIC_INDEX = "crossref-works"
+ GIT_REVISION = subprocess.check_output(["git", "describe", "--always"]).strip()
# "Event more verbose" debug options. SECRET_KEY is bogus.
#SQLALCHEMY_ECHO = True