test query gets deleted once it is succesful

This commit is contained in:
Navan Chauhan 2020-07-07 11:16:11 +05:30
parent 5d9fb22120
commit 8c1eee1605
1 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,10 @@ except con.IntegrityError:
insert_tuple = (jobID,"navanchauhan@gmail.com",receptor,receptorName,ligand,ligandName,config,done)
mycursor.execute(sqlQuery,insert_tuple)
print("Removing Test Query")
q = 'delete from curieweb where id="%s"' % (jobID)
mycursor.execute(q)
mycon.commit()