mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
log.py: fix listing of log files
This commit is contained in:
parent
03a5c3d144
commit
91f747eaee
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ def log_list(limit=None, with_details=False, with_suboperations=False):
|
|||
logs = [
|
||||
x
|
||||
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)))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue