From 5d9fb2212051849015712a4dbf1dc488e315d885 Mon Sep 17 00:00:00 2001 From: Navan Chauhan Date: Tue, 7 Jul 2020 11:05:21 +0530 Subject: fixed ligad+receprot names and fixing backend test --- app/backend_test.py | 2 +- app/dock_docker.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'app') diff --git a/app/backend_test.py b/app/backend_test.py index 004a853..d0f2312 100644 --- a/app/backend_test.py +++ b/app/backend_test.py @@ -3,7 +3,7 @@ import mysql.connector as con mycon = con.connect(host="navanspi.duckdns.org",user="curieweb",password="curie-web-russian-54",port=3306,database="curie") mycursor = mycon.cursor() -sql_select_Query = "select * from curieweb where id=2idcjxfsxla03oux LIMIT 1" +sql_select_Query = 'select * from curieweb where id="2idcjxfsxla03oux" LIMIT 1' mycursor.execute(sql_select_Query) records = mycursor.fetchall() diff --git a/app/dock_docker.py b/app/dock_docker.py index 2e13253..2b0c959 100644 --- a/app/dock_docker.py +++ b/app/dock_docker.py @@ -52,9 +52,9 @@ jobID = r[0] toEmail = r[1] targetB = r[2] if r[3] != None: - receptor_name = str(r[3]) + ".pdbqt" + receptor_name = str(r[3]) if r[6] != None: - ligand_name = str(r[6]) + ".pdbqt" + ligand_name = str(r[6]) ligandB = r[4] configB = r[7] date = r[8] -- cgit v1.2.3