fix(task): rename loop var t→task_row to avoid shadowing locale.t import

This commit is contained in:
Ubuntu 2026-05-03 00:13:12 +00:00
parent 2478beb9ea
commit 0b760eed0b
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class TaskManager:
if task_type:
stmt = stmt.where(TaskModel.task_type == task_type)
tasks = db.execute(stmt).scalars().all()
return [self._to_dict(t) for t in tasks]
return [self._to_dict(task_row) for task_row in tasks]
def cleanup_old_tasks(self, max_age_hours: int = 24) -> None:
from datetime import timedelta