Skip to content

Commit

Permalink
Update for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
hssm committed Jul 15, 2016
1 parent fa3f8bd commit aa66fea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions advancedbrowser/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AdvancedDataModel(DataModel):

def __init__(self, browser):
"""Load our copy of the active columns and suppress the built-in one.
This function runs after custom columns have been registered, so our
list of custom types has already been populated."""
super(AdvancedDataModel, self).__init__(browser)
Expand Down Expand Up @@ -75,12 +75,12 @@ def columnData(self, index):
if type in self.browser.customTypes:
return self.browser.customTypes[type].onData(c, n, type)

def search(self, txt, reset=True):
def search(self, txt):
"""We swap out the col.findCards function with our custom myFindCards,
call the original search(), then put it back to its original version."""
orig = self.col.findCards
self.col.findCards = self.myFindCards
super(AdvancedDataModel, self).search(txt, reset)
super(AdvancedDataModel, self).search(txt)
self.col.findCards = orig


Expand Down

0 comments on commit aa66fea

Please # to comment.