mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-08-10 21:01:10 +03:00
Add on_conflict_ignore, replacing the try/catch/pass on IntegrityError
This commit is contained in:
@@ -537,7 +537,7 @@ async def set_multiple_reviewed(
|
|||||||
)
|
)
|
||||||
|
|
||||||
if to_create:
|
if to_create:
|
||||||
UserReviewStatus.insert_many(to_create).execute()
|
UserReviewStatus.insert_many(to_create).on_conflict_ignore().execute()
|
||||||
|
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
content=(
|
content=(
|
||||||
|
|||||||
Reference in New Issue
Block a user