mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
b454da1636
@ -442,13 +442,11 @@ class SearchDialog(QDialog):
|
|||||||
def template_search_string(self):
|
def template_search_string(self):
|
||||||
template = str(self.template_program_box.text())
|
template = str(self.template_program_box.text())
|
||||||
value = str(self.template_value_box.text())
|
value = str(self.template_value_box.text())
|
||||||
if template and value:
|
|
||||||
cb = self.template_test_type_box
|
cb = self.template_test_type_box
|
||||||
op = str(cb.itemData(cb.currentIndex()))
|
op = str(cb.itemData(cb.currentIndex()))
|
||||||
l = f'{template}#@#:{op}:{value}'
|
l = f'{template}#@#:{op}:{value}'
|
||||||
# Use docstring quoting (super-quoting) to avoid problems with escaping
|
# Use docstring quoting (super-quoting) to avoid problems with escaping
|
||||||
return 'template:"""' + l + '"""'
|
return 'template:"""' + l + '"""'
|
||||||
return ''
|
|
||||||
|
|
||||||
def date_search_string(self):
|
def date_search_string(self):
|
||||||
field = str(self.date_field.itemData(self.date_field.currentIndex()) or '')
|
field = str(self.date_field.itemData(self.date_field.currentIndex()) or '')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user