X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/a64e6584c05481aa1f05bb7c9d3870b657016261..83ed4687677954c6411b0ac9e9bdfc9f303251e0:/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])