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):
|
||||
order = [db.Books.sort]
|
||||
order = [db.Books.timestamp.desc()]
|
||||
if sort == 'stored':
|
||||
sort = current_user.get_view_property(data, 'stored')
|
||||
else:
|
||||
@ -369,7 +369,7 @@ def get_sort_function(sort, data):
|
||||
if sort == 'hotasc':
|
||||
order = [func.count(ub.Downloads.book_id).asc()]
|
||||
if sort is None:
|
||||
sort = "abc"
|
||||
sort = "new"
|
||||
return order, sort
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user