mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
add pep8 name for findReplace
This commit is contained in:
parent
29379a9a50
commit
05ca797ee6
2 changed files with 5 additions and 2 deletions
|
@ -586,7 +586,7 @@ select id from notes where id in %s and id not in (select nid from cards)"""
|
|||
self.flush_all_changes()
|
||||
return self.backend.search_notes(query)
|
||||
|
||||
def findReplace(
|
||||
def find_and_replace(
|
||||
self,
|
||||
nids: List[int],
|
||||
src: str,
|
||||
|
@ -602,6 +602,7 @@ select id from notes where id in %s and id not in (select nid from cards)"""
|
|||
|
||||
findCards = find_cards
|
||||
findNotes = find_notes
|
||||
findReplace = find_and_replace
|
||||
|
||||
# Config
|
||||
##########################################################################
|
||||
|
|
|
@ -1967,7 +1967,9 @@ update cards set usn=?, mod=?, did=? where id in """
|
|||
self.model.beginReset()
|
||||
|
||||
def do_search():
|
||||
return self.col.findReplace(nids, search, replace, regex, field, nocase)
|
||||
return self.col.find_and_replace(
|
||||
nids, search, replace, regex, field, nocase
|
||||
)
|
||||
|
||||
def on_done(fut):
|
||||
self.search()
|
||||
|
|
Loading…
Reference in a new issue