From 242cb4631eb39b9f23ba53ec47da0f5531e1023b Mon Sep 17 00:00:00 2001 From: Alexei Date: Wed, 31 May 2023 13:31:36 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9C=D0=B5=D0=BB=D0=BA=D0=B8=D0=B5=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B0=D0=B2=D0=BA=D0=B8.=20=D0=A3=D0=B4=D0=B0=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BA=D0=BD=D0=BE=D0=BF=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=81=D0=BF=D0=B8=D1=81=D0=BE=D0=BA=20=D0=BF=D1=80=D0=BE=D0=B5?= =?UTF-8?q?=D0=BA=D1=82=D0=BE=D0=B2=20=D1=81=20=D0=B3=D0=BB=D0=B0=D0=B2?= =?UTF-8?q?=D0=BD=D0=BE=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot_modules/projects.py | 6 ------ bot_sys/bd_table.py | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/bot_modules/projects.py b/bot_modules/projects.py index 315899c..fb28514 100644 --- a/bot_modules/projects.py +++ b/bot_modules/projects.py @@ -124,9 +124,3 @@ class ModuleProjects(mod_table_operate.TableOperateModule): def GetName(self): return module_name - def GetModuleButtons(self): - return super().GetModuleButtons() + [ - keyboard.ButtonWithAccess(self.GetButton(mod_table_operate.ButtonNames.LIST), user_access.AccessMode.VIEW, self.GetAccess()), - ] - - diff --git a/bot_sys/bd_table.py b/bot_sys/bd_table.py index 6223308..e09f4b4 100644 --- a/bot_sys/bd_table.py +++ b/bot_sys/bd_table.py @@ -6,9 +6,9 @@ from enum import auto # Тип поля в таблице class TableFieldType(Enum): - INT = 'INTEGER' - STR = 'TEXT' - ENUM = 'ENUM' + INT = auto() + STR = auto() + ENUM = auto() def InitTableType(a_TableFieldType): types = {