Make some strings f-strings
This commit is contained in:
parent
50acc5843c
commit
2f4b5302bd
|
@ -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}'
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue