From de15480c50da4f2bc7521b8a810977887b520038 Mon Sep 17 00:00:00 2001 From: Matt Schmitz Date: Thu, 15 Aug 2024 10:46:33 -0400 Subject: [PATCH] Fix #118 --- docs/changelog.md | 3 +++ events/api.go | 1 + events/filters.go | 2 +- main.go | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/changelog.md b/docs/changelog.md index ed7efa8..92dde29 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -1,5 +1,8 @@ # Changelog +## [v0.3.4](https://github.com/0x2142/frigate-notify/releases/tag/v0.3.4) - Aug 15 2024 + - Fixed issue where `unzoned: drop` config would drop all notifications + ## [v0.3.3](https://github.com/0x2142/frigate-notify/releases/tag/v0.3.3) - Aug 14 2024 - Additional filtering options for alerts: - [Sublabels](https://frigate-notify.0x2142.com/latest/config/file/#sublabels) diff --git a/events/api.go b/events/api.go index 6ab6626..75a4d87 100644 --- a/events/api.go +++ b/events/api.go @@ -81,6 +81,7 @@ func CheckForEvents() { Msgf("Event start time: %s", eventTime) // Check that event passes configured filters + event.CurrentZones = event.Zones if !checkEventFilters(event) { return } diff --git a/events/filters.go b/events/filters.go index 1919038..5f91b6e 100644 --- a/events/filters.go +++ b/events/filters.go @@ -21,7 +21,7 @@ func checkEventFilters(event models.Event) bool { return false } // Check Zone filter - if !isAllowedZone(event.ID, event.Zones) { + if !isAllowedZone(event.ID, event.CurrentZones) { return false } // Check Label filter diff --git a/main.go b/main.go index 31e0d54..37dbf0a 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ import ( "github.com/0x2142/frigate-notify/util" ) -var APP_VER = "v0.3.3" +var APP_VER = "v0.3.4" var debug, debugenv bool var jsonlog, jsonlogenv bool var nocolor, nocolorenv bool