new species notify working now
This commit is contained in:
@@ -246,6 +246,7 @@ def sendAppriseNotifications(species,confidence):
|
|||||||
if str(str(str([i for i in this_run if i.startswith('APPRISE_NOTIFY_NEW_SPECIES')]).split('=')[1]).split('\\')[0]) == "1":
|
if str(str(str([i for i in this_run if i.startswith('APPRISE_NOTIFY_NEW_SPECIES')]).split('=')[1]).split('\\')[0]) == "1":
|
||||||
try:
|
try:
|
||||||
con = sqlite3.connect(userDir + '/BirdNET-Pi/scripts/birds.db')
|
con = sqlite3.connect(userDir + '/BirdNET-Pi/scripts/birds.db')
|
||||||
|
con.row_factory = lambda cursor, row: row[0]
|
||||||
cur = con.cursor()
|
cur = con.cursor()
|
||||||
cur.execute("SELECT DISTINCT(Com_Name) FROM detections")
|
cur.execute("SELECT DISTINCT(Com_Name) FROM detections")
|
||||||
known_species = cur.fetchall()
|
known_species = cur.fetchall()
|
||||||
|
|||||||
Reference in New Issue
Block a user