1 Commits

Author SHA1 Message Date
c3c9ae0632 Don't take time from .git
All checks were successful
continuous-integration/drone/push Build is passing
.git is not included int the Dockerfile thus it cannot be used to get
time of last edit
2023-01-18 17:13:11 +01:00

View File

@ -13,7 +13,9 @@ def version_date():
"%d-%b-%Y %H:%m",
time.gmtime(
os.path.getmtime(
os.path.abspath(os.path.join(settings.BASE_DIR, "..", "..", ".git"))
os.path.abspath(
os.path.join(settings.BASE_DIR, "..", "..", "pyproject.toml")
)
)
),
)