Skip to content
Snippets Groups Projects
Commit bb95ace3 authored by Vermaat's avatar Vermaat
Browse files

Merge pull request #85 from mutalyzer/fix-query

Fix query bug in update transcript-protein links
parents ef724503 6eae570b
No related branches found
No related tags found
No related merge requests found
......@@ -115,8 +115,7 @@ def update_transcript_protein_link(transcript_accession=None,
protein_accession)
# Delete any related existing links.
links = TranscriptProteinLink.query.filter(or_(*clauses))
session.delete(links)
TranscriptProteinLink.query.filter(or_(*clauses)).delete()
session.commit()
# There is a race condition here between deleting old links and adding the
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment