Skip to content

Commit

Permalink
use 0.12 compatible DB API (per http://trac-hacks.org/ticket/9803)
Browse files Browse the repository at this point in the history
  • Loading branch information
ejucovy committed Feb 16, 2012
1 parent fa4304b commit e667722
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion multireposearch/sqlindexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ def do_reindex(db):
def find_words(self, query):
db = self.env.get_read_db()
sql, args = search_to_sql(db, ['contents'], query)
for id, filename, repo in db(self.query % sql, args):
cursor = db.cursor()
cursor.execute(self.query % sql, args)
for id, filename, repo in cursor:
yield filename, repo


Expand Down

0 comments on commit e667722

Please sign in to comment.