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