diff --git a/pyproject.toml b/pyproject.toml index 27e3775..1545f36 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "redis-om" -version = "0.0.9" +version = "0.0.11" description = "A high-level library containing useful Redis abstractions and tools, like an ORM and leaderboard." authors = ["Andrew Brookins "] maintainers = ["Andrew Brookins "] diff --git a/redis_om/model/model.py b/redis_om/model/model.py index eaa42c6..64e139b 100644 --- a/redis_om/model/model.py +++ b/redis_om/model/model.py @@ -1210,8 +1210,11 @@ class HashModel(RedisModel, abc.ABC): # TODO: We assume the key ends with the default separator, ":" -- when # we make the separator configurable, we need to update this as well. # ... And probably lots of other places ... + # + # TODO: Also, we need to decide how we want to handle the lack of + # decode_responses=True... return ( - key.split(":")[-1] + key.split(":")[-1] if isinstance(key, str) else key.decode(cls.Meta.encoding).split(":")[-1] for key in cls.db().scan_iter(f"{key_prefix}*", _type="HASH") )