Watchlist sort by score by default
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
4851d50d7e
commit
5221094333
@ -34,7 +34,7 @@ class IndexView(generic.ListView):
|
||||
if self.request.GET.get("watched", False) != "true":
|
||||
qs = qs.filter(watched=False)
|
||||
# Sort
|
||||
order = self.request.GET.get("sort", "id")
|
||||
order = self.request.GET.get("sort", "score")
|
||||
if order in ('id', '-id', 'name', '-name'):
|
||||
qs = qs.order_by(order).all()
|
||||
elif order == "score" or order == "-score":
|
||||
|
Loading…
Reference in New Issue
Block a user