Skip to content

Commit d935fad

Browse files
committed
fix(chart): Fixed sorting by date
1 parent d427f21 commit d935fad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chart/function/create_chart.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ async def create_chart(
4444
async with pool.acquire() as conn:
4545
data = await conn.fetch(
4646
'SELECT date, rate FROM currency '
47-
'WHERE (date BETWEEN $1 AND $2) AND from_currency = $3 AND conv_currency = $4',
47+
'WHERE (date BETWEEN $1 AND $2) AND from_currency = $3 AND conv_currency = $4 ORDER BY date',
4848
start_date_obj,
4949
end_date_obj,
5050
from_currency.upper(),

0 commit comments

Comments
 (0)