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!
This commit is contained in:
ehpersonal38
2022-05-28 07:46:12 -04:00
parent 3d5a52423b
commit 458ea9b1dc
+1 -1
View File
@@ -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')