blob: c8549d6a5042437a225b6fb2b3b7e2d07e7cc843 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
from django.http import HttpRequest
from pydis_site.constants import GIT_SHA
def git_sha_processor(_: HttpRequest) -> dict:
"""Expose the git SHA for this repo to all views."""
return {'git_sha': GIT_SHA}
|