Mercurial > code > home > repos > homeauto
changeset 314:c51075f267bc
fix oneshot
Ignore-this: cd3f3076031766d8f82c6130d1b31e05
author | drewp@bigasterisk.com |
---|---|
date | Wed, 12 Oct 2016 18:36:49 -0700 |
parents | bfc3f246e77e |
children | 8db492695a51 |
files | service/reasoning/inputgraph.py service/reasoning/reasoning.py |
diffstat | 2 files changed, 2 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/service/reasoning/inputgraph.py Sun Oct 09 13:58:51 2016 -0700 +++ b/service/reasoning/inputgraph.py Wed Oct 12 18:36:49 2016 -0700 @@ -129,7 +129,7 @@ self._oneShotAdditionGraph = g self._combinedGraph = None try: - self.onChange(self, oneShot=True, oneShotGraph=g) + self.onChangeLocal(oneShot=True, oneShotGraph=g) finally: self._oneShotAdditionGraph = None self._combinedGraph = None
--- a/service/reasoning/reasoning.py Sun Oct 09 13:58:51 2016 -0700 +++ b/service/reasoning/reasoning.py Wed Oct 12 18:36:49 2016 -0700 @@ -93,10 +93,7 @@ statements are already in inputGraph.getGraph(). """ log.info("----------------------") - log.info("graphChanged:") - if oneShot: - for s in oneShotGraph: - log.debug(" oneshot stmt %r", s) + log.info("graphChanged (oneShot=%s):", oneShot) t1 = time.time() oldInferred = self.inferred try: