This commit is contained in:
Untone 2024-09-26 17:47:20 +03:00
parent f3eb18ae14
commit 91048a13c9

View File

@ -12,8 +12,7 @@ async def get_all_removed(uid):
texts = [] texts = []
# Use scan_iter to find all keys matching the pattern # Use scan_iter to find all keys matching the pattern
scanned = await redis.scan_iter(pattern) async for key in redis.scan_iter(pattern):
for key in scanned:
# Fetch the value for each key # Fetch the value for each key
value = await redis.get(key) value = await redis.get(key)
if value: if value: