Skip to content

Commit

Permalink
Bug fixed for new schema
Browse files Browse the repository at this point in the history
  • Loading branch information
sureshhewabi committed Aug 7, 2024
1 parent 89efbf8 commit cdea279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/routes/pride.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit cdea279

Please sign in to comment.