forked from Github/frigate
Fix incorrect recording config access (#13524)
* Fix incorrect access * Formatting
This commit is contained in:
@@ -288,10 +288,7 @@ class AudioEventMaintainer(threading.Thread):
|
|||||||
|
|
||||||
resp = requests.put(
|
resp = requests.put(
|
||||||
f"{FRIGATE_LOCALHOST}/api/events/{detection['id']}/end",
|
f"{FRIGATE_LOCALHOST}/api/events/{detection['id']}/end",
|
||||||
json={
|
json={"end_time": detection["last_detection"]},
|
||||||
"end_time": detection["last_detection"]
|
|
||||||
+ self.config.record.events.post_capture
|
|
||||||
},
|
|
||||||
)
|
)
|
||||||
|
|
||||||
if resp.status_code == 200:
|
if resp.status_code == 200:
|
||||||
|
|||||||
Reference in New Issue
Block a user