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