From: timv Date: Wed, 12 Dec 2012 20:46:27 +0000 (-0500) Subject: FIX: accidently delete on unchanged values X-Git-Url: https://hydra-www.ietfng.org/gitweb/?a=commitdiff_plain;h=0fe086cbcd46dbeb6953ffa6592ee98c4fc512be;p=dyna2 FIX: accidently delete on unchanged values --- diff --git a/bin/stdlib.py b/bin/stdlib.py index acfb526..a9ffe53 100644 --- a/bin/stdlib.py +++ b/bin/stdlib.py @@ -237,9 +237,6 @@ def _run(): was = chart[fn].data[idx][-1] # last cell is val - if was is not None: - delete(item, was) - now = aggregate(item) # compute new val for item print ' was %s now %s' % (was, now) @@ -248,6 +245,9 @@ def _run(): print ' unchanged' continue + if was is not None: + delete(item, was) + chart[fn].data[idx][-1] = now update_dispatcher(item, now)