q = """
SELECT id, url FROM new_site WHERE status = 'new' and id > %s
"""
- d = self.runQuery(q, self.new_site_last_id)
+ d = self.runQuery(q, [ self.new_site_last_id ])
d.addCallback(self.gotNewSites)
d.addErrback(self.errorHandler)
q = """
SELECT id, url FROM new_site WHERE status = 'url_picked' and id > %s
"""
- d = self.runQuery(q, self.picked_site_last_id)
+ d = self.runQuery(q, [ self.picked_site_last_id ])
d.addErrback(self.errorHandler)
d.addCallback(self.gotPickedSites)
FROM site_refresh, site WHERE
site_refresh.site_id = site.id and site_refresh.status = 'new' and site_refresh.id > %s
"""
- d = self.runQuery(q, self.refresh_last_id)
+ d = self.runQuery(q, [ self.refresh_last_id ])
d.addCallback(self.gotRefresh)
d.addErrback(self.errorHandler)
SELECT id, url FROM new_site WHERE status = 'preview' and id > %s
"""
- d = self.runQuery(q, self.preview_site_last_id)
+ d = self.runQuery(q, [ self.preview_site_last_id ])
d.addCallback(self.gotPreviewSites)
d.addErrback(self.errorHandler)