From 7010b5cb6b4e4380d9e23add9c7c98431b6e3f95 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Fri, 16 Oct 2020 10:10:08 +0200 Subject: [PATCH] Fix for waiter. --- src/waiter/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/waiter/models.py b/src/waiter/models.py index 6de18d46a..45ff80ed4 100644 --- a/src/waiter/models.py +++ b/src/waiter/models.py @@ -50,8 +50,8 @@ class WaitedFile(models.Model): if not already: waited, created = cls.objects.get_or_create(path=path) if created: - task_creator(check_abspath(path), waited.pk) - waited.task_id = waited.task.task_id + task = task_creator(check_abspath(path), waited.pk) + waited.task_id = task.task_id waited.description = description waited.save() return reverse("waiter", args=[path]) -- 2.20.1