Fix "Internal Server Error" on advanced search
Custom boolean columns return that error if calibre does not have a custom_column_1 in the DB, as this is queried in the removed line. However the value is completely unused anyway -> removing.
This commit is contained in:
parent
b80bfa5260
commit
a2c7741e21
|
@ -2025,7 +2025,6 @@ def advanced_search():
|
|||
custom_query = request.args.get('custom_column_' + str(c.id))
|
||||
if custom_query:
|
||||
if c.datatype == 'bool':
|
||||
getattr(db.Books, 'custom_column_1')
|
||||
q = q.filter(getattr(db.Books, 'custom_column_'+str(c.id)).any(
|
||||
db.cc_classes[c.id].value == (custom_query== "True") ))
|
||||
elif c.datatype == 'int':
|
||||
|
|
Loading…
Reference in New Issue
Block a user