Call suggestions redis in feed

This commit is contained in:
Mouse Reeve
2021-04-06 08:31:18 -07:00
parent 18ba33e050
commit 03e5da12dd
3 changed files with 20 additions and 6 deletions

View File

@ -56,9 +56,9 @@ class RedisStore(ABC):
pipeline.zrem(store, -1, obj.id)
pipeline.execute()
def get_store(self, store): # pylint: disable=no-self-use
def get_store(self, store, **kwargs): # pylint: disable=no-self-use
""" load the values in a store """
return r.zrevrange(store, 0, -1)
return r.zrevrange(store, 0, -1, **kwargs)
def populate_store(self, store):
""" go from zero to a store """