From: Fredrik Tolf Date: Wed, 21 Mar 2018 22:37:42 +0000 (+0100) Subject: Fixed multi-index bug. X-Git-Url: http://git.dolda2000.com/gitweb/?a=commitdiff_plain;h=48b29dca7c64d3a4366cc1d73d3d0c538b3f1c53;p=didex.git Fixed multi-index bug. --- diff --git a/didex/values.py b/didex/values.py index debd29e..e51d9d5 100644 --- a/didex/values.py +++ b/didex/values.py @@ -129,7 +129,7 @@ class multi(descbase): idx.remove(val, id, tx=tx) for val in vals - ivals: idx.put(val, id, tx=tx) - tx.postcommit(lambda: self.store.icache.__setitem__((obj, self), val)) + tx.postcommit(lambda: self.store.icache.__setitem__((obj, self), vals)) def loaded(self, id, obj, tx): vals = frozenset(self.__get__(obj, None))