Modify variable useage

This commit is contained in:
Andrew
2025-11-21 14:05:32 -04:00
parent c63db67b04
commit 20d6a2a1da

View File

@@ -823,9 +823,9 @@ class TasksManager:
logger.error(
"Traversal detected while deleting import file %s", file_path
)
if self.helper.is_file_older_than_x_days(Path(import_path, file)):
if self.helper.is_file_older_than_x_days(file_path):
try:
os.remove(Path(import_path, file))
os.remove(file_path)
except FileNotFoundError:
logger.debug("Could not clear out file from import directory")