Faulty logic with queued queryset.

This commit is contained in:
Josh W 2019-11-23 23:56:16 -05:00
parent 427c06fb35
commit 269e2e30a8

View file

@ -16,8 +16,7 @@ class RequestManager(models.Manager):
return self.get_queryset().filter(queued_at__isnull=True) return self.get_queryset().filter(queued_at__isnull=True)
def queued(self): def queued(self):
return self.get_queryset().filter(models.Q(queued_at__isnull=False) & return self.get_queryset().filter(queued_at__isnull=False)
models.Q(played_at__isnull=True))
def new_requests(self): def new_requests(self):
return self.get_queryset().filter(models.Q(queued_at__isnull=True) & return self.get_queryset().filter(models.Q(queued_at__isnull=True) &