From 9500099da88b603f4fe3f5c99d01eedfa52372c3 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Tue, 23 Jun 2009 15:39:59 +1200 Subject: [PATCH] Fix some half migrated runQuery -> runInteraction instances. --- services/master/refreshmanager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/master/refreshmanager.py b/services/master/refreshmanager.py index 9c80fec..5c7d72f 100644 --- a/services/master/refreshmanager.py +++ b/services/master/refreshmanager.py @@ -73,7 +73,7 @@ class RefreshManager: 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) @@ -130,7 +130,7 @@ class RefreshManager: 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): -- 2.30.2