aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-05-16 23:43:22 +0200
committerGravatar Leon Sandøy <[email protected]>2020-05-16 23:43:22 +0200
commit5859711a05e634d7b788944b8292071cb1e7cf72 (patch)
treedd85fdd033cc3df707b66d79b94946a34976b807
parentAdd basic dict methods for RedisDict. (diff)
copy should dictify the .items(), not just keys.
-rw-r--r--bot/utils/redis.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/redis.py b/bot/utils/redis.py
index 1e8c6422d..470de47b7 100644
--- a/bot/utils/redis.py
+++ b/bot/utils/redis.py
@@ -77,4 +77,4 @@ class RedisDict(MutableMapping):
def copy(self) -> Dict:
"""Convert to dict and return."""
- return dict(self)
+ return dict(self.items())