mirror of
https://github.com/Redume/Shirino.git
synced 2025-07-03 18:50:55 +01:00
chore: Added transfer of data about the service of chart creation to the query
This commit is contained in:
parent
81a57e4b9e
commit
f98943674f
1 changed files with 3 additions and 3 deletions
|
@ -22,8 +22,7 @@ async def currency(query: types.InlineQuery) -> None:
|
||||||
get_bot = await bot.get_me()
|
get_bot = await bot.get_me()
|
||||||
|
|
||||||
data = await db.fetch(
|
data = await db.fetch(
|
||||||
'SELECT lang, chart, chart_period '
|
'SELECT * FROM users WHERE user_id = ?',
|
||||||
'FROM users WHERE user_id = ?',
|
|
||||||
query.from_user.id
|
query.from_user.id
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -95,7 +94,8 @@ async def currency(query: types.InlineQuery) -> None:
|
||||||
chart = await create_chart(
|
chart = await create_chart(
|
||||||
from_currency,
|
from_currency,
|
||||||
conv_currency,
|
conv_currency,
|
||||||
data.get('chart_period', 'month')
|
data.get('chart_period', 'month'),
|
||||||
|
data.get('chart_backend', 'matplotlib')
|
||||||
)
|
)
|
||||||
|
|
||||||
message = (
|
message = (
|
||||||
|
|
Loading…
Add table
Reference in a new issue