From 0b7f65e227d4bca6b1f3692654ce63ab69c1558f Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Mon, 7 Sep 2020 19:37:21 -0500 Subject: [PATCH] fixes --- Dockerfile | 1 + frigate/events.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2e89b7a5f..f261fcb45 100755 --- a/Dockerfile +++ b/Dockerfile @@ -58,5 +58,6 @@ WORKDIR /opt/frigate/ ADD frigate frigate/ COPY detect_objects.py . COPY benchmark.py . +COPY process_clip.py . CMD ["python3.7", "-u", "detect_objects.py"] diff --git a/frigate/events.py b/frigate/events.py index 56d8e0388..fe311133c 100644 --- a/frigate/events.py +++ b/frigate/events.py @@ -130,7 +130,7 @@ class EventProcessor(threading.Thread): return with open(f"{os.path.join(self.clip_dir, clip_name)}.json", 'w') as outfile: - json.dump(event_data, outfile) + json.dump({x: event_data[x] for x in event_data if x not in ['frame']}), outfile) def run(self): while True: