scan_iter

This commit is contained in:
Untone 2024-09-26 16:02:55 +03:00
parent 1991f51b75
commit a38c6364eb

View File

@ -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: