From 177f2b0186f0e197e1698bd71a92e3b1047587ef Mon Sep 17 00:00:00 2001 From: mcguirepr89 Date: Tue, 24 May 2022 10:20:25 -0400 Subject: [PATCH] new species notify working now --- scripts/server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/server.py b/scripts/server.py index 627b1a0..38a06fc 100755 --- a/scripts/server.py +++ b/scripts/server.py @@ -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": try: con = sqlite3.connect(userDir + '/BirdNET-Pi/scripts/birds.db') + con.row_factory = lambda cursor, row: row[0] cur = con.cursor() cur.execute("SELECT DISTINCT(Com_Name) FROM detections") known_species = cur.fetchall()