Fix #2174 (default sorting order now is timestamp again)
This commit is contained in:
parent
01cc97c1b2
commit
d624b67e93
1 changed files with 2 additions and 2 deletions
|
@ -339,7 +339,7 @@ def get_matching_tags():
|
||||||
|
|
||||||
|
|
||||||
def get_sort_function(sort, data):
|
def get_sort_function(sort, data):
|
||||||
order = [db.Books.sort]
|
order = [db.Books.timestamp.desc()]
|
||||||
if sort == 'stored':
|
if sort == 'stored':
|
||||||
sort = current_user.get_view_property(data, 'stored')
|
sort = current_user.get_view_property(data, 'stored')
|
||||||
else:
|
else:
|
||||||
|
@ -369,7 +369,7 @@ def get_sort_function(sort, data):
|
||||||
if sort == 'hotasc':
|
if sort == 'hotasc':
|
||||||
order = [func.count(ub.Downloads.book_id).asc()]
|
order = [func.count(ub.Downloads.book_id).asc()]
|
||||||
if sort is None:
|
if sort is None:
|
||||||
sort = "abc"
|
sort = "new"
|
||||||
return order, sort
|
return order, sort
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue