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"))