diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-07-07 11:05:21 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-07-07 11:05:21 +0530 |
commit | 5d9fb2212051849015712a4dbf1dc488e315d885 (patch) | |
tree | 94c01db5d33c14220592d04fd511c6d23137766a | |
parent | c5302c79039a48d6a5e31a95aecbd00064ec8d35 (diff) |
fixed ligad+receprot names and fixing backend test
-rw-r--r-- | app/backend_test.py | 2 | ||||
-rw-r--r-- | app/dock_docker.py | 4 |
2 files changed, 3 insertions, 3 deletions
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] |