From 458ea9b1dce0d8f717f5001329addb2bd4f7996c Mon Sep 17 00:00:00 2001 From: ehpersonal38 <103586016+ehpersonal38@users.noreply.github.com> Date: Sat, 28 May 2022 07:46:12 -0400 Subject: [PATCH] New species bug I got New Species notifications all night on "Bachman's Sparrow." Turns out the apostrophes get stripped from Com_Name when they go in the DB, but we're still checking them against a comName that does have apostrophes. This fixes it! --- scripts/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/server.py b/scripts/server.py index c73b0fa..29ae00b 100755 --- a/scripts/server.py +++ b/scripts/server.py @@ -258,7 +258,7 @@ def sendAppriseNotifications(species, confidence): print("\ncomName: ", comName) print("\nknown_species: ", known_species) - if comName not in known_species: + if comName.replace("'","") not in known_species: apobj = apprise.Apprise() config = apprise.AppriseConfig() config.add(userDir + '/BirdNET-Pi/apprise.txt')