style: fix code formatting

This commit is contained in:
Maxim Slipenko 2024-10-03 18:25:08 +03:00
parent 7724a60f8c
commit 0881fe02d5
No known key found for this signature in database
GPG Key ID: 6DEA9FA7DE98C7D6
4 changed files with 18 additions and 20 deletions

View File

@ -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"),

View File

@ -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())

View File

@ -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/",

View File

@ -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()