From f60a617f7b13a7d6c6232bcdb519652fb43f7fb8 Mon Sep 17 00:00:00 2001 From: Richard Abrich Date: Thu, 20 Jun 2024 08:47:43 -0400 Subject: [PATCH 1/2] fix(record): remove extra param (#784) --- openadapt/record.py | 1 - 1 file changed, 1 deletion(-) diff --git a/openadapt/record.py b/openadapt/record.py index 90a43f4d9..81860fa21 100644 --- a/openadapt/record.py +++ b/openadapt/record.py @@ -1291,7 +1291,6 @@ def record( started_counter, video_pre_callback, video_post_callback, - "(video)", ), ) video_writer.start() From 4ff4c736685e02dc45ab73eb2912df5fdd0c7386 Mon Sep 17 00:00:00 2001 From: Shashank Tiwari Date: Thu, 20 Jun 2024 18:43:27 +0530 Subject: [PATCH 2/2] fix(tray): Fix incorrect argument when visualizing from tary (#780) Changed order in tray.py Co-authored-by: Richard Abrich --- openadapt/app/tray.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openadapt/app/tray.py b/openadapt/app/tray.py index 51a05e628..29d28b52a 100644 --- a/openadapt/app/tray.py +++ b/openadapt/app/tray.py @@ -249,7 +249,7 @@ def _visualize(self, recording: Recording) -> None: if self.visualize_proc is not None: self.visualize_proc.kill() self.visualize_proc = multiprocessing.Process( - target=visualize, args=(recording.id,) + target=visualize, args=(recording,) ) self.visualize_proc.start() @@ -454,7 +454,7 @@ def populate_menu(self, menu: QMenu, action: Callable, action_type: str) -> None menu.addAction(no_recordings_action) self.recording_actions[action_type].append(no_recordings_action) else: - for idx, recording in enumerate(recordings): + for recording in recordings: formatted_timestamp = datetime.fromtimestamp( recording.timestamp ).strftime("%Y-%m-%d %H:%M:%S")