Commits

Thomas Waldmann committed 468607d

whooshify similar_names

  • Participants
  • Parent commits 31aff62
  • Branches pytest2

Comments (0)

Files changed (1)

MoinMoin/apps/frontend/views.py

     :rtype: tuple
     :returns: start word, end word, matches dict
     """
-    item_names = [item.name for item in flaskg.storage.iteritems()]
+    item_names = [doc[NAME] for doc in flaskg.storage.documents(all_revs=False, wikiname=app.cfg.interwikiname)]
     if item_name in item_names:
         item_names.remove(item_name)
     # Get matches using wiki way, start and end of word