Fixed multi-index bug. master
authorFredrik Tolf <fredrik@dolda2000.com>
Wed, 21 Mar 2018 22:37:42 +0000 (23:37 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Wed, 21 Mar 2018 22:37:42 +0000 (23:37 +0100)
didex/values.py

index debd29e..e51d9d5 100644 (file)
@@ -129,7 +129,7 @@ class multi(descbase):
                 idx.remove(val, id, tx=tx)
             for val in vals - ivals:
                 idx.put(val, id, tx=tx)
                 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))
 
     def loaded(self, id, obj, tx):
         vals = frozenset(self.__get__(obj, None))