diff options
author | Navan Chauhan <navanchauhan@gmail.com> | 2020-07-07 11:16:11 +0530 |
---|---|---|
committer | Navan Chauhan <navanchauhan@gmail.com> | 2020-07-07 11:16:11 +0530 |
commit | 8c1eee16057551a1faaa15e4aed8e56f9fb37a57 (patch) | |
tree | 0e0fde920b9ab743e28721a7645622ddc9acd788 | |
parent | 5d9fb2212051849015712a4dbf1dc488e315d885 (diff) |
test query gets deleted once it is succesful
-rw-r--r-- | app/dbTestFiller.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/dbTestFiller.py b/app/dbTestFiller.py index db3700a..48f8c16 100644 --- a/app/dbTestFiller.py +++ b/app/dbTestFiller.py @@ -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() |