Watchlist sort by score by default
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Michal Kunc 2023-01-24 18:55:23 +01:00
parent 4851d50d7e
commit 5221094333

View File

@ -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":