Skip to content

Commit

Permalink
Merge pull request #27 from daisybio/dependency_migration
Browse files Browse the repository at this point in the history
Dependency migration
  • Loading branch information
strasserle authored Dec 12, 2024
2 parents b85c8fd + 5d7b19d commit 91a2c60
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/controllers/transcriptInteraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,12 @@ def read_specific_interaction(dataset_ID: int = None, disease_name=None, enst_nu
if limit > 1000:
abort(404, "Limit is to high. For a high number of needed interactions please use the download section.")

transcript = models.transcript.query
transcript_query = db.select(models.Transcript)

if enst_number is not None:
transcript = transcript.filter(models.Transcript.enst_number.in_(enst_number)) \
.all()
transcript_query = transcript_query.where(models.Transcript.enst_number.in_(enst_number))

transcript = db.session.execute(transcript_query).scalars().all()

if len(transcript) > 0:
transcript_IDs = [t.transcript_ID for t in transcript]
Expand Down

0 comments on commit 91a2c60

Please sign in to comment.