From a50aa1a15ce639873912595e1730f57febd41c99 Mon Sep 17 00:00:00 2001 From: Andrew Ruthven Date: Wed, 24 Jun 2009 12:17:40 +1200 Subject: [PATCH] Remove some needed CURRVAL queries. --- services/command/newsite.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/services/command/newsite.py b/services/command/newsite.py index a13f6bc..461dcec 100644 --- a/services/command/newsite.py +++ b/services/command/newsite.py @@ -559,9 +559,8 @@ class NewSiteDone(BaseCommand): def newSiteInteraction(self, trans, *args): trans.execute(*args) - return trans.lastrowid - def done(self, result, *args, **kw): + def done(self, *args, **kw): site_history_new_ids = self.state.get("site_history_new_ids", []) self.d.callback(dict(site_id=self.state["site_id"], site_history_new_ids=site_history_new_ids, @@ -623,5 +622,5 @@ class NewSiteError: def updateDoneError(self, *args, **kw): self.d.errback(self.orig_failure) - def updateDone(self, result, *args, **kw): + def updateDone(self, *args, **kw): self.d.callback(dict(site_id=None, type=None)) -- 2.30.2