From 0b8374a3587e52b8db407e5c89625e364ac28d93 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Tue, 23 Jun 2009 09:37:22 +1200 Subject: [PATCH] More MySQLisms. --- services/command/siterefresh.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/services/command/siterefresh.py b/services/command/siterefresh.py index 47ad931..f2b83ea 100644 --- a/services/command/siterefresh.py +++ b/services/command/siterefresh.py @@ -42,9 +42,9 @@ class RefreshSiteDone(BaseCommand): self.state = state id = self.state["site_refresh_id"] q = """ - UPDATE site_refresh SET status = "done", error = NULL where id = %s + UPDATE site_refresh SET status = 'done', error = NULL where id = %s """ - d = self.dcm.runQuery(q, id) + d = self.dcm.runQuery(q, [ id ]) d.addCallback(self.srDone) d.addErrback(self.error) @@ -100,15 +100,15 @@ class RefreshSiteError: if failure.check(NotModifiedError): self.it_failed = False q = """ - UPDATE site_refresh set status = "done", error = "http_not_modified" where id = %s + UPDATE site_refresh set status = 'done', error = 'http_not_modified' where id = %s """ - d = self.dcm.runQuery(q, id) + d = self.dcm.runQuery(q, [ id ]) d.addCallback(self.modifiedUpdateDone) d.addErrback(self.updateFailed) return self.d q = """ - UPDATE site_refresh SET status = "error", error = %s where id = %s + UPDATE site_refresh SET status = 'error', error = %s where id = %s """ error = str(failure) -- 2.30.2