From 576979d4f94442a332e4ec18e6b0bebab220562c Mon Sep 17 00:00:00 2001 From: Justin Oros Date: Sat, 26 Sep 2026 22:56:19 -0700 Subject: [PATCH] Clear the progress bar when a job finishes --- app.py | 2 ++ static/index.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 20b4bcf..de7866c 100644 --- a/app.py +++ b/app.py @@ -2029,6 +2029,7 @@ def run_loop(): if limit > 0 and published_today(s["profile_id"]) >= limit: if status["stage"] != "daily limit reached": logger.info("Profile '%s' reached its daily limit of %d, waiting for tomorrow", s["name"], limit) + reset_progress() set_stage("daily limit reached", log=False) stop_event.wait(60) continue @@ -2045,6 +2046,7 @@ def run_loop(): set_stage(f"cooling down {mins} min after error") stop_event.wait(mins * 60) continue + reset_progress() gap = int(s["minutes_between_videos"]) if gap > 0 and not stop_event.is_set(): set_stage(f"waiting {gap} min before next video") diff --git a/static/index.html b/static/index.html index 1951279..7b9c277 100644 --- a/static/index.html +++ b/static/index.html @@ -456,7 +456,7 @@ const segs=$("#pg-segs");if(segs.childElementCount!==s.steps){segs.innerHTML="{el.className=i{if(!h.started_ts)return"";const end=h.finished_ts||(h.status==="running"?s.now:0);return end?fmtDur(end-h.started_ts):""};