mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 16:44:29 +03:00
Cleanup
This commit is contained in:
parent
2715fcaf23
commit
2b8ec3ebac
@ -257,10 +257,7 @@ 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)
|
||||
events_to_update.append(batch)
|
||||
|
||||
if len(events_to_update) >= CHUNK_SIZE:
|
||||
logger.debug(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user