From a38c6364ebc00d7bbc9465ceda3168d4e16549be Mon Sep 17 00:00:00 2001 From: Untone Date: Thu, 26 Sep 2024 16:02:55 +0300 Subject: [PATCH] scan_iter --- store.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/store.py b/store.py index c141ed8..35f5354 100644 --- a/store.py +++ b/store.py @@ -12,7 +12,8 @@ async def get_all_removed(uid): texts = [] # Use scan_iter to find all keys matching the pattern - for key in await redis.scan_iter(pattern): + scanned = await redis.scan_iter(pattern) + for key in scanned: # Fetch the value for each key value = await redis.get(key) if value: