1
0
mirror of https://github.com/janeczku/calibre-web synced 2025-10-24 20:07:41 +00:00

Merge branch 'master' into Develop

This commit is contained in:
Ozzieisaacs
2021-11-21 09:14:36 +01:00
51 changed files with 86 additions and 62 deletions

View File

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