From 8d96d62299bb03caa7323e3655d43d64b98d4b75 Mon Sep 17 00:00:00 2001 From: Dronminator Date: Sat, 15 Apr 2023 20:13:13 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A2=D0=B5=D0=BB=D0=B5=D0=B3=D1=80=D0=B0?= =?UTF-8?q?=D0=BC=20=D0=91=D0=BE=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Задания/task1/Lahin/telegrambot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Задания/task1/Lahin/telegrambot.py b/Задания/task1/Lahin/telegrambot.py index ee3ac7d..3031c38 100644 --- a/Задания/task1/Lahin/telegrambot.py +++ b/Задания/task1/Lahin/telegrambot.py @@ -27,7 +27,7 @@ def from_bd(message): return else: data = execute_request(f"select * from laptops where id = {current_id}")[0][1:-1] - names_of_columns = [i[0] for i in execute_request(f"""select Column_name from Information_schema.columns where Table_name = 'laptops'""")][1:-1] + names_of_columns = ["Товар", "Цена", "Диагональ", "Разрешение", "Процессор", "Оперативная память", "Графический контроллер", "Объём диска"] everydata = [] for data_name, column_name in zip(data, names_of_columns): everydata.append(column_name.capitalize() + ": " + data_name)