Browse Source

Merge "Fix "too many SQL variables" error"

changes/91/391991/1
Jenkins 5 years ago
committed by Gerrit Code Review
parent
commit
d3a6be76ce
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      gertty/db.py

+ 3
- 2
gertty/db.py View File

@ -832,8 +832,9 @@ class DatabaseSession(object):
# the set of supplied IDs. This is used when sync'ing the changesets
# locally with the remote changes.
if not ids:
return set([])
return set([r[0] for r in self.session().query(Change.id).filter(Change.id.in_(ids)).all()])
return set()
query = self.session().query(Change.id)
return set(ids).intersection(r[0] for r in query.all())
def getChangesByChangeID(self, change_id):
try:


Loading…
Cancel
Save