From cdea279dc17b11408f2744cabab8e686841146ac Mon Sep 17 00:00:00 2001 From: sureshhewa Date: Wed, 7 Aug 2024 16:29:07 +0100 Subject: [PATCH] Bug fixed for new schema --- app/routes/pride.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/routes/pride.py b/app/routes/pride.py index 061f0c8..a877dcb 100644 --- a/app/routes/pride.py +++ b/app/routes/pride.py @@ -472,14 +472,14 @@ async def delete_dataset(project_id: str, session: Session = Depends(get_session logging.info("trying to delete records from SpectrumIdentificationProtocol") session.query(SpectrumIdentificationProtocol).filter( SpectrumIdentificationProtocol.upload_id.in_(upload_id_list)).delete() + logging.info("trying to delete records from PeptideEvidence") + session.query(PeptideEvidence).filter(PeptideEvidence.upload_id.in_(upload_id_list)).delete() logging.info("trying to delete records from ModifiedPeptide") session.query(ModifiedPeptide).filter(ModifiedPeptide.upload_id.in_(upload_id_list)).delete() logging.info("trying to delete records from DBSequence") session.query(DBSequence).filter(DBSequence.upload_id.in_(upload_id_list)).delete() logging.info("trying to delete records from Spectrum") session.query(Spectrum).filter(Spectrum.upload_id.in_(upload_id_list)).delete() - logging.info("trying to delete records from PeptideEvidence") - session.query(PeptideEvidence).filter(PeptideEvidence.upload_id.in_(upload_id_list)).delete() logging.info("trying to delete records from SpectraData") session.query(SpectraData).filter(SpectraData.upload_id.in_(upload_id_list)).delete() logging.info("trying to delete records from Upload")