From af344cd4d8105ed619d15366e8b8874982bd3195 Mon Sep 17 00:00:00 2001 From: Sebastian Gode Date: Fri, 6 Sep 2024 07:57:35 +0000 Subject: [PATCH] longer commit string --- otc_metadata/templates/conf.py.j2 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/otc_metadata/templates/conf.py.j2 b/otc_metadata/templates/conf.py.j2 index df824e60..aea8e3be 100644 --- a/otc_metadata/templates/conf.py.j2 +++ b/otc_metadata/templates/conf.py.j2 @@ -133,8 +133,8 @@ latex_documents = [ {% endif -%} ] -# Get the Git commit values +# Get the Git commit values for last updated timestamp on each page repo = Repo(search_parent_directories=True) commit = repo.head.commit -current_commit_hash = commit.hexsha[:7] +current_commit_hash = commit.hexsha current_commit_time = commit.committed_datetime.strftime('%Y-%m-%d %H:%M')