~thekorn/zeitgeist/exclusive_clients

« back to all changes in this revision

Viewing changes to _zeitgeist/engine/resonance_engine.py

  • Committer: Siegfried-Angel Gevatter Pujals
  • Date: 2009-12-07 11:27:46 UTC
  • Revision ID: rainct@ubuntu.com-20091207112746-fqgsma3vp63g6xjh
Change GetEvents() to use our own escaping instead
of the one provided by sqlite3. This allows us to
fetch more than 999 events at once.

Show diffs side-by-side

added added

removed removed

Lines of Context:
334
334
                rows = self._cursor.execute("""
335
335
                        SELECT * FROM event_view
336
336
                        WHERE id IN (%s)
337
 
                        """ % ",".join(["?" for id in ids]), ids).fetchall()
 
337
                        """ % ",".join(("%d" % id for id in ids))).fetchall()
338
338
                events = {}
339
339
                for row in rows:
340
340
                        # Assumption: all rows of a same event for its different