This commit is contained in:
Kovid Goyal 2023-06-01 05:24:17 +05:30
commit b454da1636
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -442,13 +442,11 @@ class SearchDialog(QDialog):
def template_search_string(self):
template = str(self.template_program_box.text())
value = str(self.template_value_box.text())
if template and value:
cb = self.template_test_type_box
op = str(cb.itemData(cb.currentIndex()))
l = f'{template}#@#:{op}:{value}'
# Use docstring quoting (super-quoting) to avoid problems with escaping
return 'template:"""' + l + '"""'
return ''
cb = self.template_test_type_box
op = str(cb.itemData(cb.currentIndex()))
l = f'{template}#@#:{op}:{value}'
# Use docstring quoting (super-quoting) to avoid problems with escaping
return 'template:"""' + l + '"""'
def date_search_string(self):
field = str(self.date_field.itemData(self.date_field.currentIndex()) or '')