Actually use provided stoers list
This commit is contained in:
parent
9c21f4d8e6
commit
16235d1d90
|
@ -37,7 +37,7 @@ class RedisStore(ABC):
|
||||||
"""remove an object from all stores"""
|
"""remove an object from all stores"""
|
||||||
stores = stores or self.get_stores_for_object(obj)
|
stores = stores or self.get_stores_for_object(obj)
|
||||||
pipeline = r.pipeline()
|
pipeline = r.pipeline()
|
||||||
for store in self.get_stores_for_object(obj):
|
for store in stores:
|
||||||
pipeline.zrem(store, -1, obj.id)
|
pipeline.zrem(store, -1, obj.id)
|
||||||
pipeline.execute()
|
pipeline.execute()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue