Skip to content

Commit

Permalink
quick nit for no-longer living files (onyx-dot-app#3702)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablonyx authored Jan 18, 2025
1 parent da43abe commit 2761a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/onyx/utils/long_term_log.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def __init__(
def _cleanup_old_files(self, category_path: Path) -> None:
try:
files = sorted(
category_path.glob("*.json"),
[f for f in category_path.glob("*.json") if f.is_file()],
key=lambda x: x.stat().st_mtime, # Sort by modification time
reverse=True,
)
Expand Down

0 comments on commit 2761a83

Please sign in to comment.