From 756765733e9d30b2754226674fd1af7a13b19142 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sun, 7 Jul 2019 14:28:43 +0200 Subject: [PATCH] Tweak the version output --- config.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/config.py b/config.py index bec0202..c037ba0 100644 --- a/config.py +++ b/config.py @@ -45,6 +45,14 @@ except ModuleNotFoundError: VERSION = ( subprocess.check_output(["git", "describe", "--always"]).split()[0].decode("utf-8") ) +_version_date = ( + subprocess.check_output(["git", "show", "6daf8d6"]) + .decode() + .splitlines()[2] + .split("Date:")[-1] + .strip() +) +VERSION = f"{VERSION} ({_version_date})" DEBUG_MODE = strtobool(os.getenv("MICROBLOGPUB_DEBUG", "false"))