Don't take time from .git
continuous-integration/drone/push Build is passing Details

.git is not included int the Dockerfile thus it cannot be used to get
time of last edit
This commit is contained in:
Lukáš Kucharczyk 2023-01-18 17:13:09 +01:00
parent 55c2693f32
commit c3c9ae0632
1 changed files with 3 additions and 1 deletions

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")
)
)
),
)