mirror of
https://github.com/simon987/sist2.git
synced 2025-04-19 18:26:43 +00:00
Merge pull request #371 from dpieski/patch-3
Only remove files with job_name.
This commit is contained in:
commit
71deab7fa2
@ -65,8 +65,8 @@ def get_log_files_to_remove(db: PersistentState, job_name: str, n: int):
|
|||||||
if row["name"].endswith(f"[{job_name}]"):
|
if row["name"].endswith(f"[{job_name}]"):
|
||||||
counter += 1
|
counter += 1
|
||||||
|
|
||||||
if counter > n:
|
if counter > n:
|
||||||
to_remove.append(row)
|
to_remove.append(row)
|
||||||
|
|
||||||
return to_remove
|
return to_remove
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user