chore: Added transfer of data about the service of chart creation to the query

This commit is contained in:
Danil 2025-06-06 11:20:16 +03:00
parent 81a57e4b9e
commit f98943674f

View file

@ -22,8 +22,7 @@ async def currency(query: types.InlineQuery) -> None:
get_bot = await bot.get_me()
data = await db.fetch(
'SELECT lang, chart, chart_period '
'FROM users WHERE user_id = ?',
'SELECT * FROM users WHERE user_id = ?',
query.from_user.id
)
@ -95,7 +94,8 @@ async def currency(query: types.InlineQuery) -> None:
chart = await create_chart(
from_currency,
conv_currency,
data.get('chart_period', 'month')
data.get('chart_period', 'month'),
data.get('chart_backend', 'matplotlib')
)
message = (