I don't think this works right if you have multiple tasks with this plugin. You probably want to add BestSeen.task_name == task.name or something like that in there.