fix ancient bug (WaitedFile.is_stale)
authorJan Szejko <jan.szejko@gmail.com>
Fri, 8 Jul 2016 12:04:04 +0000 (14:04 +0200)
committerJan Szejko <jan.szejko@gmail.com>
Fri, 8 Jul 2016 12:04:04 +0000 (14:04 +0200)
src/waiter/models.py

index bffaf7f..112e754 100644 (file)
@@ -52,7 +52,7 @@ class WaitedFile(models.Model):
         already = cls.exists(path)
         if not already:
             waited, created = cls.objects.get_or_create(path=path)
         already = cls.exists(path)
         if not already:
             waited, created = cls.objects.get_or_create(path=path)
-            if created or waited.is_stale():
+            if created:
                 waited.task = task_creator(check_abspath(path), waited.pk)
                 waited.task_id = waited.task.task_id
                 waited.description = description
                 waited.task = task_creator(check_abspath(path), waited.pk)
                 waited.task_id = waited.task.task_id
                 waited.description = description