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")