mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-28 12:30:00 +00:00
Fix #2174 (default sorting order now is timestamp again)
This commit is contained in:
parent
01cc97c1b2
commit
d624b67e93
@ -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 New Issue
Block a user