If a song request is queued, it's technically played.

This commit is contained in:
Josh Washburne 2018-09-24 13:03:42 -04:00
parent 7a59b5778c
commit bb493548cb

View file

@ -6,8 +6,7 @@ class RequestManager(models.Manager):
return super().get_queryset()
def unplayed(self):
return self.get_queryset().filter(queued_at__isnull=True,
played_at__isnull=True)
return self.get_queryset().filter(played_at__isnull=True)
def played(self):
return self.get_queryset().filter(models.Q(queued_at__isnull=False) |