From f98943674fa42fddc193f85f9c18c674de7bab27 Mon Sep 17 00:00:00 2001 From: Redume Date: Fri, 6 Jun 2025 11:20:16 +0300 Subject: [PATCH] chore: Added transfer of data about the service of chart creation to the query --- commands/currency.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commands/currency.py b/commands/currency.py index 32a93d7..bd5ac23 100644 --- a/commands/currency.py +++ b/commands/currency.py @@ -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 = (