~facundo/encuentro/trunk

« back to all changes in this revision

Viewing changes to encuentro/data.py

  • Committer: Facundo Batista
  • Date: 2014-03-10 11:39:30 UTC
  • Revision ID: facundo@taniquetil.com.ar-20140310113930-3wdydohn4xj049eq
Do the prepare to filter only once.

Show diffs side-by-side

added added

removed removed

Lines of Context:
131
131
            return
132
132
 
133
133
        t = self.normalized_title
134
 
        text = prepare_to_filter(text)
135
134
        pos1 = t.find(text)
136
135
        if pos1 == -1:
137
136
            # need to match text, sorry