~mbernis/openlp/2.2_remote_app_enhancement

« back to all changes in this revision

Viewing changes to openlp/plugins/songs/lib/db.py

  • Committer: mbernis at chez
  • Date: 2016-10-29 19:52:25 UTC
  • Revision ID: mbernis@chez.com-20161029195225-wkrp4r2blfkdrh5q
ignore accent in search string for song

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
        Song sorting is performance sensitive operation.
132
132
        To get maximum speed lets precompute the sorting key.
133
133
        """
134
 
# mbernis crash on load BEGIN
 
134
# mbernis: crash on load BEGIN
135
135
# bug : crash on load if song's title is empty
136
136
        if not self.title:
137
137
            self.sort_key = []
138
138
        else:
139
139
            self.sort_key = get_natural_key(self.title)
140
 
# mbernis crash on load END
 
140
# mbernis: crash on load END
141
141
 
142
142
    def add_author(self, author, author_type=None):
143
143
        """