Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosribas committed Jul 3, 2024
1 parent 3e448fc commit 6c19d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ def fetch_data_from_db(ids: List[str]) -> List[Dict[str, Any]]:
precomputed.c.rna_type,
precomputed.c.so_rna_type,
precomputed.c.databases,
r2dt_results.c.secondary_structure,
func.coalesce(r2dt_results.c.secondary_structure, "").label("secondary_structure"),
func.coalesce(rna.c.seq_short, rna.c.seq_long).label("sequence")
)
.join(rna, rna.c.upi == precomputed.c.upi)
.join(r2dt_results, r2dt_results.c.urs == precomputed.c.upi)
.join(r2dt_results, r2dt_results.c.urs == precomputed.c.upi, isouter=True)
.where(precomputed.c.id.in_(ids))
)
results = session.execute(stmt).fetchall()
Expand Down

0 comments on commit 6c19d3d

Please sign in to comment.