From de31dcd60850cb610bcfd535ac6651a085fe9431 Mon Sep 17 00:00:00 2001 From: CaiusX Date: Mon, 7 Feb 2022 11:57:36 +0200 Subject: [PATCH] Updated server.py to pull DB_PWD from thisrun. --- scripts/server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/server.py b/scripts/server.py index 70d39f3..8739dc5 100755 --- a/scripts/server.py +++ b/scripts/server.py @@ -41,8 +41,8 @@ server.bind(ADDR) # Open most recent Configuration and grab DB_PWD as a python variable with open('/home/pi/BirdNET-Pi/thisrun.txt', 'r') as f: - this_run = f.readlines() - db_pwd = str(str(str([i for i in this_run if i.startswith('DB_PWD')]).split('=')[1]).split('\\')[0]) + this_run = f.readlines() + db_pwd = str(str(str([i for i in this_run if i.startswith('DB_PWD')]).split('=')[1]).split('\\')[0]) def loadModel():