From 086527f5eebf65cc32ba4f889c9f1e7e77a3cbf6 Mon Sep 17 00:00:00 2001 From: quarz12 Date: Thu, 11 May 2023 16:43:58 +0200 Subject: [PATCH] test at home --- cps/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/db.py b/cps/db.py index c87c1f07..eee5b841 100644 --- a/cps/db.py +++ b/cps/db.py @@ -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)