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)
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)