~emihalac/mnemosyne-proj/mnemosyne-proj

« back to all changes in this revision

Viewing changes to mnemosyne/mnemosyne/pyqt_ui/browse_cards_dlg.py

  • Committer: Peter Bienstman
  • Date: 2017-04-03 15:01:09 UTC
  • Revision ID: peter.bienstman@ugent.be-20170403150109-afd0zmaiiib2h8hj
Minor fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
831
831
        self.card_model.search_string = search_string
832
832
        if search_string:
833
833
            if filter:
834
 
                filter += "and "
 
834
                filter += " and "
835
835
            filter += "(question like '%%%s%%' or answer like '%%%s%%')" \
836
836
                % (search_string, search_string)
837
837
        self.card_model.setFilter(filter)