Change how watched filter parameter works
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
d4970c6aa4
commit
b119c54473
@ -31,7 +31,7 @@ class IndexView(generic.ListView):
|
||||
def get_queryset(self):
|
||||
qs = models.Movie.objects
|
||||
# Filter
|
||||
if self.request.GET.get("watched", False) != "true":
|
||||
if self.request.GET.get("watched", False) == False:
|
||||
qs = qs.filter(watched=False)
|
||||
# Sort
|
||||
order = self.request.GET.get("sort", "score")
|
||||
|
Loading…
Reference in New Issue
Block a user