mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-12 12:59:24 +00:00
black :aha_oups:
This commit is contained in:
@ -38,11 +38,17 @@ import PIL
|
|||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.core.files.base import ContentFile
|
from django.core.files.base import ContentFile
|
||||||
|
|
||||||
|
|
||||||
def get_git_revision_short_hash() -> str:
|
def get_git_revision_short_hash() -> str:
|
||||||
"""
|
"""
|
||||||
Return the short hash of the current commit
|
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()):
|
def get_start_of_semester(d=date.today()):
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user