From 48b29dca7c64d3a4366cc1d73d3d0c538b3f1c53 Mon Sep 17 00:00:00 2001 From: Fredrik Tolf Date: Wed, 21 Mar 2018 23:37:42 +0100 Subject: [PATCH] Fixed multi-index bug. --- didex/values.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.11.0