Skip to content

Commit

Permalink
fix: broken query from sqla upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
robcxyz committed Nov 11, 2024
1 parent fa32703 commit a8414e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion balanced_backend/api/v1/endpoints/stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from fastapi import APIRouter, Depends, Response, Query
from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy import text

from balanced_backend.db import get_session
from balanced_backend.utils.rpc import get_icx_call
Expand Down Expand Up @@ -35,7 +36,7 @@ async def historical_stability(

query += f" ORDER BY timestamp DESC LIMIT {limit} OFFSET {skip}"

result = await session.execute(query)
result = await session.execute(text(query))
time_series = result.fetchall()

# Check if exists
Expand Down

0 comments on commit a8414e5

Please sign in to comment.