From 7a9a7eae501edbe562bb8acabb782b111afacb2c Mon Sep 17 00:00:00 2001 From: Alex Parsons Date: Wed, 20 Nov 2024 15:00:34 +0000 Subject: [PATCH] FIx transcript group errror --- .github/workflows/build_and_publish.yml | 2 ++ src/parl_motion_detector/motions.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_and_publish.yml b/.github/workflows/build_and_publish.yml index 3634c1e..4f800b3 100644 --- a/.github/workflows/build_and_publish.yml +++ b/.github/workflows/build_and_publish.yml @@ -13,6 +13,8 @@ on: push: branches: ["main"] workflow_dispatch: + schedule: + - cron: '0 9 * * *' jobs: diff --git a/src/parl_motion_detector/motions.py b/src/parl_motion_detector/motions.py index 4aafbc0..754c941 100644 --- a/src/parl_motion_detector/motions.py +++ b/src/parl_motion_detector/motions.py @@ -506,9 +506,9 @@ def new_motion(speech_start_pid: Optional[str]): except IndexError: try: next_transcript_group = transcript_groups[transcript_index + 1] + next_item = next_transcript_group.speech.items[0] except IndexError: next_item = None - next_item = next_transcript_group.speech.items[0] if discussion_mode(paragraph): speech_is_discussion_mode = True