mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 16:44:29 +03:00
Fix single event return
This commit is contained in:
parent
53b96dfb89
commit
9f0d29feab
@ -257,7 +257,11 @@ class EventCleanup(threading.Thread):
|
|||||||
events_to_update = []
|
events_to_update = []
|
||||||
|
|
||||||
for batch in query.iterator():
|
for batch in query.iterator():
|
||||||
events_to_update.extend([event.id for event in batch])
|
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:
|
if len(events_to_update) >= CHUNK_SIZE:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
f"Updating {update_params} for {len(events_to_update)} events"
|
f"Updating {update_params} for {len(events_to_update)} events"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user