fixed ligad+receprot names and fixing backend test

This commit is contained in:
Navan Chauhan 2020-07-07 11:05:21 +05:30
parent c5302c7903
commit 5d9fb22120
2 changed files with 3 additions and 3 deletions

View File

@ -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()

View File

@ -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]