mirror of https://gitlab.com/bashrc2/epicyon
Last modified days since epoch
parent
9dd77fa4e1
commit
9d75c54271
|
@ -5739,7 +5739,8 @@ def htmlHashTagSwarm(baseDir: str, actor: str) -> str:
|
||||||
tagsFilename = os.path.join(baseDir + '/tags', f)
|
tagsFilename = os.path.join(baseDir + '/tags', f)
|
||||||
if not os.path.isfile(tagsFilename):
|
if not os.path.isfile(tagsFilename):
|
||||||
continue
|
continue
|
||||||
lastModifiedDate = os.stat(tagsFilename)
|
modTimesinceEpoc = os.path.getmtime(tagsFilename)
|
||||||
|
lastModifiedDate = datetime.fromtimestamp(modTimesinceEpoc)
|
||||||
fileDaysSinceEpoch = (lastModifiedDate - datetime(1970, 1, 1)).days
|
fileDaysSinceEpoch = (lastModifiedDate - datetime(1970, 1, 1)).days
|
||||||
if fileDaysSinceEpoch < maxDaysSinceEpoch:
|
if fileDaysSinceEpoch < maxDaysSinceEpoch:
|
||||||
removeHashtags.append(tagsFilename)
|
removeHashtags.append(tagsFilename)
|
||||||
|
|
Loading…
Reference in New Issue