log.py: use os.path.join instead

This commit is contained in:
Salamandar 2024-07-17 00:03:41 +02:00
parent 91f747eaee
commit 9a0960dcf1

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(OPERATIONS_PATH + "/" + x) > one_year_ago if x.endswith(METADATA_FILE_EXT) and os.path.getctime(os.path.join(OPERATIONS_PATH, x)) > one_year_ago
] ]
logs = list(reversed(sorted(logs))) logs = list(reversed(sorted(logs)))