remove sith version from the footer

This commit is contained in:
thomas girod
2024-09-01 10:38:57 +02:00
parent 7c0c132f40
commit cf46c3800f
4 changed files with 50 additions and 77 deletions

View File

@ -290,11 +290,6 @@
</a>
{% endblock %}
<br>
<code class="version">
{% cache 1000 "sith_version" %}
{% trans %}Sith version:{% endtrans %}&nbsp;{{ get_sith().version }}
{% endcache %}
</code>
</footer>
{% endif %}

View File

@ -13,7 +13,6 @@
#
#
import subprocess
from datetime import date
# Image utils
@ -29,17 +28,6 @@ from PIL import ExifTags
from PIL.Image import Resampling
def get_git_revision_short_hash() -> str:
"""Return the short hash of the current commit."""
try:
output = subprocess.check_output(["git", "rev-parse", "--short", "HEAD"])
if isinstance(output, bytes):
return output.decode("ascii").strip()
return output.strip()
except subprocess.CalledProcessError:
return ""
def get_start_of_semester(today: Optional[date] = None) -> date:
"""Return the date of the start of the semester of the given date.
If no date is given, return the start date of the current semester.