1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-11-13 05:20:01 +00:00

test at home

This commit is contained in:
quarz12 2023-05-11 16:43:58 +02:00
parent c115fe9295
commit 086527f5ee

View File

@ -959,7 +959,7 @@ class CalibreDB:
order = order[0] if order else [Books.sort]
pagination = None
#result = self.search_query(term, config, *join).order_by(*order).all()#*order
result = self.search_query(term, config, *join).order_by(desc(func.partial_ratio(Books.title+" "+Books.author_sort,term))).all()
result = self.search_query(term, config, *join).order_by(desc(func.partial_ratio(Books.title.name+" "+Books.author_sort.name+" "+Books.tags.get(),term))).all()
for row in result:
print(row)