q = """
SELECT id, url, last_poll from site where is_removed is null and id > %s
"""
- d = self.master.database_manager.runInteraction(q, [ self.site_check_last_id ])
+ d = self.master.database_manager.runQuery(q, [ self.site_check_last_id ])
d.addCallback(self.gotNewSites)
d.addErrback(self.newSitesError)
q = """
INSERT INTO site_refresh (site_id, status) values (%s, 'new')
"""
- d = self.master.database_manager.runQuery(self.newInteraction, q, [ site.id ])
+ d = self.master.database_manager.runInteraction(self.newInteraction, q, [ site.id ])
d.addErrback(self.error)
def newInteraction(self, trans, *args):