Updated server.py to pull DB_PWD from thisrun.
This commit is contained in:
+2
-2
@@ -41,8 +41,8 @@ server.bind(ADDR)
|
|||||||
|
|
||||||
# Open most recent Configuration and grab DB_PWD as a python variable
|
# Open most recent Configuration and grab DB_PWD as a python variable
|
||||||
with open('/home/pi/BirdNET-Pi/thisrun.txt', 'r') as f:
|
with open('/home/pi/BirdNET-Pi/thisrun.txt', 'r') as f:
|
||||||
this_run = f.readlines()
|
this_run = f.readlines()
|
||||||
db_pwd = str(str(str([i for i in this_run if i.startswith('DB_PWD')]).split('=')[1]).split('\\')[0])
|
db_pwd = str(str(str([i for i in this_run if i.startswith('DB_PWD')]).split('=')[1]).split('\\')[0])
|
||||||
|
|
||||||
|
|
||||||
def loadModel():
|
def loadModel():
|
||||||
|
|||||||
Reference in New Issue
Block a user