log.py: fix listing of log files

This commit is contained in:
Salamandar 2024-07-17 00:02:58 +02:00
parent 03a5c3d144
commit 91f747eaee

View file

@ -135,7 +135,7 @@ def log_list(limit=None, with_details=False, with_suboperations=False):
logs = [ logs = [
x x
for x in os.listdir(OPERATIONS_PATH) for x in os.listdir(OPERATIONS_PATH)
if x.endswith(METADATA_FILE_EXT) and os.path.getctime(x) > one_year_ago if x.endswith(METADATA_FILE_EXT) and os.path.getctime(OPERATIONS_PATH + "/" + x) > one_year_ago
] ]
logs = list(reversed(sorted(logs))) logs = list(reversed(sorted(logs)))