Bug 82651 - () -> None

git-svn-id: svn://svn.office.custis.ru/3rdparty/viewvc.org/trunk@1446 6955db30-a419-402b-8a0d-67ecbb4d7f56
remotes/github/custis
vfilippov 2011-10-25 16:31:57 +00:00 committed by Vitaliy Filippov
parent 7d15648286
commit fa08478619
1 changed files with 2 additions and 2 deletions

View File

@ -690,7 +690,7 @@ class CheckinDatabase:
rows[docid]['snippet'] = self.get_snippet(sph, content, query.content_query, rows[docid]['mimetype'])
# Run query and return all rows as dictionaries
def selectall(self, db, sql, args = (), key = None):
def selectall(self, db, sql, args = None, key = None):
cursor = db.cursor()
cursor.execute(sql, args)
desc = list(r[0] for r in cursor.description)
@ -712,7 +712,7 @@ class CheckinDatabase:
if len(rows):
for r in rows:
r['id'] = str(r['id'])
m_rows = self.selectall(self.db, self.CreateIdQueryString((r['id'] for r in rows)), (), 'id')
m_rows = self.selectall(self.db, self.CreateIdQueryString((r['id'] for r in rows)), None, 'id')
new_rows = []
# Check rights BEFORE fetching snippets
for i in rows: