mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-13 05:20:01 +00:00
removed debugging help
This commit is contained in:
parent
7a43e0785b
commit
2e3c93b9e4
@ -916,7 +916,7 @@ class CalibreDB:
|
||||
filter_expression.append(
|
||||
getattr(Books,
|
||||
'custom_column_' + str(c.id)).any(
|
||||
func.lower(cc_classes[c.id].value).ilike("%" + term + "%"))) #TODO ?
|
||||
func.lower(cc_classes[c.id].value).ilike("%" + term + "%")))
|
||||
# filter out multiple languages and archived books,
|
||||
results=query.filter(self.common_filters(True))
|
||||
|
||||
@ -932,9 +932,7 @@ class CalibreDB:
|
||||
]
|
||||
results=results.filter(or_(*filter_expression))
|
||||
|
||||
try: return results
|
||||
except Exception:
|
||||
print(traceback.format_exc())
|
||||
return results
|
||||
|
||||
def get_cc_columns(self, config, filter_config_custom_read=False):
|
||||
tmp_cc = self.session.query(CustomColumns).filter(CustomColumns.datatype.notin_(cc_exceptions)).all()
|
||||
|
Loading…
Reference in New Issue
Block a user