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>'
|
text += '</a></b>'
|
||||||
if mtext:
|
if mtext:
|
||||||
text += f'{force_ltr} {html.escape(mtext.strip()[:2000])}'
|
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
|
user_text = forwardee.first_name
|
||||||
if forwardee.last_name:
|
if forwardee.last_name:
|
||||||
user_text += f' {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])}'
|
text += f'{force_ltr} {html.escape(mtext.strip()[:1000])}'
|
||||||
reply = message.reply_to_message
|
reply = message.reply_to_message
|
||||||
if not getattr(reply, 'empty', True):
|
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:
|
if reply.from_user:
|
||||||
user_text = reply.from_user.first_name
|
user_text = reply.from_user.first_name
|
||||||
if reply.from_user.last_name:
|
if reply.from_user.last_name:
|
||||||
|
|
Loading…
Reference in New Issue