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:
+1
-1
@@ -258,7 +258,7 @@ def sendAppriseNotifications(species, confidence):
|
|||||||
|
|
||||||
print("\ncomName: ", comName)
|
print("\ncomName: ", comName)
|
||||||
print("\nknown_species: ", known_species)
|
print("\nknown_species: ", known_species)
|
||||||
if comName not in known_species:
|
if comName.replace("'","") not in known_species:
|
||||||
apobj = apprise.Apprise()
|
apobj = apprise.Apprise()
|
||||||
config = apprise.AppriseConfig()
|
config = apprise.AppriseConfig()
|
||||||
config.add(userDir + '/BirdNET-Pi/apprise.txt')
|
config.add(userDir + '/BirdNET-Pi/apprise.txt')
|
||||||
|
|||||||
Reference in New Issue
Block a user