From c827234f92b62267deaf86da664ca788e2538856 Mon Sep 17 00:00:00 2001 From: Pigbibi <20649888+Pigbibi@users.noreply.github.com> Date: Mon, 29 Jun 2026 08:33:36 +0800 Subject: [PATCH] fix: add missing json/Path imports + remove workflow_dispatch event filter in heartbeat - main.py: add and that were missing after the BTC cycle indicators feature (cd4b99a), causing NameError crash in enrich_btc_snapshot_with_cycle_indicators - runtime_workflow_heartbeat.py: remove filter from both GitHub API calls so the heartbeat can detect Runtime workflow runs triggered by workflow_run (CI completion) in addition to manual workflow_dispatch Co-Authored-By: Claude --- main.py | 1 + scripts/runtime_workflow_heartbeat.py | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/main.py b/main.py index 73c974ec..6c068eca 100644 --- a/main.py +++ b/main.py @@ -5,6 +5,7 @@ helpers, and live service adapters live in dedicated modules. """ +import json import os import sys import time diff --git a/scripts/runtime_workflow_heartbeat.py b/scripts/runtime_workflow_heartbeat.py index d2a5b991..7c46a13f 100644 --- a/scripts/runtime_workflow_heartbeat.py +++ b/scripts/runtime_workflow_heartbeat.py @@ -88,7 +88,6 @@ def _list_workflow_runs( query = urllib.parse.urlencode( { "branch": branch, - "event": "workflow_dispatch", "per_page": str(per_page), } ) @@ -109,7 +108,6 @@ def _list_repository_workflow_runs( query = urllib.parse.urlencode( { "branch": branch, - "event": "workflow_dispatch", "per_page": str(per_page), } )