add .gitignore, remove pycache
This commit is contained in:
1 parent
6dbe0536ca
commit
7793a0cb77
54 files changed
+10
-18
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -61,6 +61,7 @@ class _BaseEntityDescriptor:
|
||||
item_caption_btn: EntityItemCaptionCallable | None = None
|
||||
show_in_entities_menu: bool = True
|
||||
field_sequence: list[str] = None
|
||||
edit_buttons: list[list[str]] = None
|
||||
permissions: dict[EntityPermission, list[RoleBase]] = field(default_factory = lambda: {
|
||||
EntityPermission.LIST: [RoleBase.DEFAULT_USER, RoleBase.SUPER_USER],
|
||||
EntityPermission.READ: [RoleBase.DEFAULT_USER, RoleBase.SUPER_USER],
|
||||
|
||||
+1
-1
@@ -3,4 +3,4 @@ from .bot_enum import BotEnum, EnumMember
|
||||
|
||||
class LanguageBase(BotEnum):
|
||||
|
||||
DEFAULT = EnumMember("en", {"en": "🇬🇧 english"})
|
||||
EN = EnumMember("en", {"en": "🇬🇧 english"})
|
||||
+1
-1
@@ -23,7 +23,7 @@ class SettingsMetaclass(type):
|
||||
if base_classes:
|
||||
settings_descriptors = base_classes[0].__dict__.get("_settings_descriptors", {})
|
||||
|
||||
for annotation in attributes['__annotations__']:
|
||||
for annotation in attributes.get('__annotations__', {}):
|
||||
|
||||
if annotation in ["_settings_descriptors", "_cache", "_cached_settings"]:
|
||||
continue
|
||||
|
||||
+1
-1
@@ -13,7 +13,7 @@ class UserBase(BotEntity, table = False):
|
||||
|
||||
__tablename__ = "user"
|
||||
|
||||
lang: LanguageBase = Field(sa_type = EnumType(LanguageBase), default = LanguageBase.DEFAULT)
|
||||
lang: LanguageBase = Field(sa_type = EnumType(LanguageBase), default = LanguageBase.EN)
|
||||
is_active: bool = True
|
||||
|
||||
roles: list[RoleBase] = Field(sa_type=ARRAY(EnumType(RoleBase)), default = [RoleBase.DEFAULT_USER])
|
||||
Reference in new issue
Block a user