X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a64e6584c05481aa1f05bb7c9d3870b657016261..bde2a16ae2669bea94ec0f23c60213a26d4881f4:/src/waiter/models.py?ds=inline 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])