From 46192b0a0305437f2bb2291afb5c5682ea3a3d3b Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Mon, 24 Aug 2020 16:14:23 +0530 Subject: added check for WiFi @ Home --- app/dock_docker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app/dock_docker.py') diff --git a/app/dock_docker.py b/app/dock_docker.py index 78f74e1..5906520 100644 --- a/app/dock_docker.py +++ b/app/dock_docker.py @@ -1,6 +1,7 @@ import mysql.connector as con +from app import app -mycon = con.connect(host="192.168.1.6",user="curieweb",password="curie-web-russian-54",port=3306,database="curie") +mycon = con.connect(host=app.config['DB_HOST'],user="curieweb",password="curie-web-russian-54",port=3306,database="curie") mycursor = mycon.cursor() sql_select_Query = "select * from curieweb where done=0 LIMIT 1" -- cgit v1.2.3