Fix single event return

This commit is contained in:
Nicolas Mowen 2024-12-12 06:18:41 -07:00
parent 53b96dfb89
commit 9f0d29feab

View File

@ -257,7 +257,11 @@ class EventCleanup(threading.Thread):
events_to_update = []
for batch in query.iterator():
try:
events_to_update.extend([event.id for event in batch])
except TypeError:
events_to_update.append(batch)
if len(events_to_update) >= CHUNK_SIZE:
logger.debug(
f"Updating {update_params} for {len(events_to_update)} events"