From b03ee285a2c476c6000599e52c5df10af6595d3a Mon Sep 17 00:00:00 2001 From: Sage Vaillancourt Date: Wed, 3 May 2023 20:51:20 +0000 Subject: [PATCH] Add 'Latest commit' label to /status page --- app/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routes.py b/app/routes.py index 8c52319..91c4fe4 100644 --- a/app/routes.py +++ b/app/routes.py @@ -287,7 +287,7 @@ def status_page() -> Response: status_message = f"Currently running on '{os.environ.get('UNDERCOVER_SERVER_NAME')}' server" git_commands = 'git log -1 --pretty=%B; git rev-parse --short HEAD' current_git_hash = subprocess.check_output([git_commands], shell=True, universal_newlines=True) - return make_response(render_template('error.jinja2', status=200, error_text=status_message, extra_text=current_git_hash), 200) + return make_response(render_template('error.jinja2', status=200, error_text=status_message, extra_text='Latest commit: ' + current_git_hash), 200) @writing_blueprint.route('/', methods=['POST'])