From 58c57a1335b7e199a4cf11d6852eff2d0946babc Mon Sep 17 00:00:00 2001 From: Julien Constant Date: Tue, 14 Mar 2023 12:25:31 +0100 Subject: [PATCH] black :aha_oups: --- core/utils.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/core/utils.py b/core/utils.py index 9b074478..aeab962a 100644 --- a/core/utils.py +++ b/core/utils.py @@ -38,11 +38,17 @@ import PIL from django.conf import settings from django.core.files.base import ContentFile + def get_git_revision_short_hash() -> str: """ Return the short hash of the current commit """ - return subprocess.check_output(['git', 'rev-parse', '--short', 'HEAD']).decode('ascii').strip() + return ( + subprocess.check_output(["git", "rev-parse", "--short", "HEAD"]) + .decode("ascii") + .strip() + ) + def get_start_of_semester(d=date.today()): """