From: Radek Czajka Date: Fri, 16 Oct 2020 08:10:08 +0000 (+0200) Subject: Fix for waiter. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/7010b5cb6b4e4380d9e23add9c7c98431b6e3f95?hp=190ea6f071ad6ef7b03aa146e5d07d15968eaf2b Fix for waiter. --- 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])