mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-15 07:35:27 +03:00
fix response message
This commit is contained in:
parent
018502b283
commit
6aacfb4b6f
@ -923,13 +923,13 @@ def set_description(
|
||||
context.embeddings.description.upsert(
|
||||
documents=[new_description],
|
||||
metadatas=[get_metadata(event)],
|
||||
ids=[id],
|
||||
ids=[event_id],
|
||||
)
|
||||
|
||||
response_message = (
|
||||
f"Event {id} description is now blank"
|
||||
f"Event {event_id} description is now blank"
|
||||
if new_description is None or len(new_description) == 0
|
||||
else f"Event {id} description set to {new_description}"
|
||||
else f"Event {event_id} description set to {new_description}"
|
||||
)
|
||||
|
||||
return JSONResponse(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user