Commits

Matt Chaput committed 77d4295

'scores' was not defined when sorting the results -- set it to None.
Fixes: #43

  • Participants
  • Parent commits adc9bef

Comments (0)

Files changed (1)

File src/whoosh/searching.py

                 sortedby = sortedby()
             
             scored_list = sortedby.order(self, query.docs(self), reverse = reverse)
+            scores = None
             docvector = BitVector(doc_reader.doc_count_all(),
                                   source = scored_list)
             if len(scored_list) > limit: