If a song request is queued, it's technically played.
This commit is contained in:
parent
7a59b5778c
commit
bb493548cb
1 changed files with 1 additions and 2 deletions
|
@ -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) |
|
||||
|
|
Loading…
Reference in a new issue