Make some strings f-strings

This commit is contained in:
blank X 2021-04-04 12:51:55 +07:00
parent 50acc5843c
commit 2f4b5302bd
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ async def log_forwards(client, message):
text += '</a></b>'
if mtext:
text += f'{force_ltr} {html.escape(mtext.strip()[:2000])}'
text += '\n{force_ltr}- <b>Forwardee:</b> '
text += f'\n{force_ltr}- <b>Forwardee:</b> '
user_text = forwardee.first_name
if forwardee.last_name:
user_text += f' {forwardee.last_name}'

View File

@ -68,7 +68,7 @@ async def log_reports(client, message):
text += f'{force_ltr} {html.escape(mtext.strip()[:1000])}'
reply = message.reply_to_message
if not getattr(reply, 'empty', True):
text += '\n{force_ltr}- <b>Reportee:</b> '
text += f'\n{force_ltr}- <b>Reportee:</b> '
if reply.from_user:
user_text = reply.from_user.first_name
if reply.from_user.last_name: