Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
mutalyzer
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirrors
mutalyzer
Commits
bb95ace3
Commit
bb95ace3
authored
9 years ago
by
Vermaat
Browse files
Options
Downloads
Plain Diff
Merge pull request #85 from mutalyzer/fix-query
Fix query bug in update transcript-protein links
parents
ef724503
6eae570b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
mutalyzer/db/queries.py
+1
-2
1 addition, 2 deletions
mutalyzer/db/queries.py
with
1 addition
and
2 deletions
mutalyzer/db/queries.py
+
1
−
2
View file @
bb95ace3
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment