]> git.etc.gen.nz Git - whoisi.git/commitdiff
Fix some half migrated runQuery -> runInteraction instances.
authorAndrew Ruthven <andrew@etc.gen.nz>
Tue, 23 Jun 2009 03:39:59 +0000 (15:39 +1200)
committerAndrew Ruthven <andrew@cerberus.etc.gen.nz>
Tue, 23 Jun 2009 03:39:59 +0000 (15:39 +1200)
services/master/refreshmanager.py

index 9c80fec866798384db7e37b02a804c6e2bb34fa1..5c7d72f6708d506594570d6fe6ff641a8a456e59 100644 (file)
@@ -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):