Skip to content

Commit

Permalink
Auto-format code [skip actions]
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jan 5, 2025
1 parent e4b8802 commit e803177
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions bot/core/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,7 @@ def add_handlers():
TgClient.bot.add_handler(
MessageHandler(
handler_func,
filters=command(command_name, case_sensitive=True)
& (custom_filter),
filters=command(command_name, case_sensitive=True) & (custom_filter),
),
)

Expand Down
4 changes: 2 additions & 2 deletions bot/modules/services.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,13 +101,13 @@ async def log_callback(_, query):
await query.answer()
async with aiopen("log.txt") as f:
log_file_lines = (await f.read()).splitlines()

def parseline(line):
try:
return line.split("] ", 1)[1]
except IndexError:
return line

ind, log_lines = 1, ""
try:
while len(log_lines) <= 3500:
Expand Down

0 comments on commit e803177

Please sign in to comment.