From ba4a6a53d7606e7841586deb58a46952b0655802 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Thu, 30 Apr 2026 18:19:53 -0500 Subject: [PATCH] Miscellaneous fixes (#23053) * don't exempt draft PRs from stalebot * Fix import * ensure toast shows when export API returns 20n (202, accepted) --------- Co-authored-by: Nicolas Mowen --- .github/workflows/stale.yml | 2 +- frigate/output/birdseye.py | 1 - web/src/components/card/ReviewCard.tsx | 2 +- web/src/views/events/EventView.tsx | 2 +- web/src/views/motion-search/MotionSearchView.tsx | 2 +- 5 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 34bc2628b..39512f24a 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -18,7 +18,7 @@ jobs: close-issue-message: "" days-before-stale: 30 days-before-close: 3 - exempt-draft-pr: true + exempt-draft-pr: false exempt-issue-labels: "planned,security" exempt-pr-labels: "planned,security,dependencies" operations-per-run: 120 diff --git a/frigate/output/birdseye.py b/frigate/output/birdseye.py index 98b4dec75..867db8d97 100644 --- a/frigate/output/birdseye.py +++ b/frigate/output/birdseye.py @@ -8,7 +8,6 @@ import os import queue import subprocess as sp import threading -import time import traceback from multiprocessing.synchronize import Event as MpEvent from typing import Any, Optional diff --git a/web/src/components/card/ReviewCard.tsx b/web/src/components/card/ReviewCard.tsx index fa2a675be..a57c1e9ed 100644 --- a/web/src/components/card/ReviewCard.tsx +++ b/web/src/components/card/ReviewCard.tsx @@ -85,7 +85,7 @@ export default function ReviewCard({ { playback: "realtime" }, ) .then((response) => { - if (response.status == 200) { + if (response.status < 300) { toast.success(t("export.toast.success"), { position: "top-center", action: ( diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsx index 919bf708a..b5aa8532f 100644 --- a/web/src/views/events/EventView.tsx +++ b/web/src/views/events/EventView.tsx @@ -278,7 +278,7 @@ export default function EventView({ { playback: "realtime", image_path: review.thumb_path }, ) .then((response) => { - if (response.status == 200) { + if (response.status < 300) { toast.success( t("export.toast.success", { ns: "components/dialog" }), { diff --git a/web/src/views/motion-search/MotionSearchView.tsx b/web/src/views/motion-search/MotionSearchView.tsx index 567206524..97811b740 100644 --- a/web/src/views/motion-search/MotionSearchView.tsx +++ b/web/src/views/motion-search/MotionSearchView.tsx @@ -357,7 +357,7 @@ export default function MotionSearchView({ }, ) .then((response) => { - if (response.status == 200) { + if (response.status < 300) { toast.success( t("export.toast.success", { ns: "components/dialog" }), {