Don't take time from .git
continuous-integration/drone/push Build is passing
Details
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:
parent
55c2693f32
commit
c3c9ae0632
|
@ -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")
|
||||
)
|
||||
)
|
||||
),
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue