Actually use provided stoers list

This commit is contained in:
Mouse Reeve 2021-08-23 10:48:23 -07:00
parent 9c21f4d8e6
commit 16235d1d90

View file

@ -37,7 +37,7 @@ class RedisStore(ABC):
"""remove an object from all stores"""
stores = stores or self.get_stores_for_object(obj)
pipeline = r.pipeline()
for store in self.get_stores_for_object(obj):
for store in stores:
pipeline.zrem(store, -1, obj.id)
pipeline.execute()