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 = {