diff --git a/src/gnomik/gnomik/__main__.py b/src/gnomik/gnomik/__main__.py index 5a579be..fd60b62 100644 --- a/src/gnomik/gnomik/__main__.py +++ b/src/gnomik/gnomik/__main__.py @@ -20,7 +20,6 @@ async def main(): block_loader("external", "create_report_apps"), block_loader("standard", "info"), block_loader("standard", "help"), - # block_loader("external", "yandexgpt", safe=False), # # block_loader("standard", "admin"), diff --git a/src/karkas_blocks/karkas_blocks/standard/admin/handlers.py b/src/karkas_blocks/karkas_blocks/standard/admin/handlers.py index 896dace..ed59e54 100644 --- a/src/karkas_blocks/karkas_blocks/standard/admin/handlers.py +++ b/src/karkas_blocks/karkas_blocks/standard/admin/handlers.py @@ -43,20 +43,20 @@ async def chat_not_in_approve_list(message: Message, bot: Bot): async def mute_user(chat_id: int, user_id: int, time: int, bot: Bot): # TODO: type variable using `typing` mutePermissions = { - "can_send_messages": False, # bool | None - "can_send_audios": False, # bool | None - "can_send_documents": False, # bool | None - "can_send_photos": False, # bool | None - "can_send_videos": False, # bool | None - "can_send_video_notes": False, # bool | None - "can_send_voice_notes": False, # bool | None - "can_send_polls": False, # bool | None - "can_send_other_messages": False, # bool | None - "can_add_web_page_previews": False, # bool | None - "can_change_info": False, # bool | None - "can_invite_users": False, # bool | None - "can_pin_messages": False, # bool | None - "can_manage_topics": False, # bool | None + "can_send_messages": False, # bool | None + "can_send_audios": False, # bool | None + "can_send_documents": False, # bool | None + "can_send_photos": False, # bool | None + "can_send_videos": False, # bool | None + "can_send_video_notes": False, # bool | None + "can_send_voice_notes": False, # bool | None + "can_send_polls": False, # bool | None + "can_send_other_messages": False, # bool | None + "can_add_web_page_previews": False, # bool | None + "can_change_info": False, # bool | None + "can_invite_users": False, # bool | None + "can_pin_messages": False, # bool | None + "can_manage_topics": False, # bool | None # **extra_data: Any } end_time = time + int(time.time()) diff --git a/src/karkas_blocks/karkas_blocks/standard/miniapp/lib.py b/src/karkas_blocks/karkas_blocks/standard/miniapp/lib.py index b518945..d54b3c7 100644 --- a/src/karkas_blocks/karkas_blocks/standard/miniapp/lib.py +++ b/src/karkas_blocks/karkas_blocks/standard/miniapp/lib.py @@ -55,9 +55,7 @@ def create_dash_app(requests_pathname_prefix: str = None) -> dash.Dash: dbc.themes.BOOTSTRAP, dbc.icons.BOOTSTRAP, ], - external_scripts=[ - "https://telegram.org/js/telegram-web-app.js" - ], + external_scripts=["https://telegram.org/js/telegram-web-app.js"], server=server, requests_pathname_prefix=real_prefix, routes_pathname_prefix="/_internal/", diff --git a/src/karkas_blocks/karkas_blocks/standard/statistics/db/tables.py b/src/karkas_blocks/karkas_blocks/standard/statistics/db/tables.py index d8a7b7d..cb25aed 100644 --- a/src/karkas_blocks/karkas_blocks/standard/statistics/db/tables.py +++ b/src/karkas_blocks/karkas_blocks/standard/statistics/db/tables.py @@ -10,7 +10,8 @@ class ChatStats(Table): class Messages(Table): # Key format: `{message_chat_id}-{message_id}` - # (A temporary measure until https://github.com/piccolo-orm/piccolo/pull/984 is accepted) + # (A temporary measure until piccolo-orm/piccolo#984 is accepted) + # key = Text(primary_key=True) chat_id = Integer() @@ -23,7 +24,7 @@ class Messages(Table): class UserStats(Table): # Key format: `{chat_id}-{user_id}` - # (A temporary measure until https://github.com/piccolo-orm/piccolo/pull/984 is accepted) + # (A temporary measure until piccolo-orm/piccolo#984 is accepted) key = Text(primary_key=True) chat_id = Integer()