Skip to content

Commit

Permalink
Fix deepsource [consider-using-f-string] (UsergeTeam#531)
Browse files Browse the repository at this point in the history
* Fix deepsource [`consider-using-f-string`]

* Update channel_logger.py

* Update channel_logger.py

Co-authored-by: None <[email protected]>
  • Loading branch information
jigarvarma2k20 and rking32 authored Oct 17, 2022
1 parent 4e77aae commit ae2ea9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions userge/core/types/new/channel_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def get_link(message_id: int) -> str:
Returns:
str
"""
return "<b><a href='https://t.me/c/{}/{}'>Preview</a></b>".format(
str(config.LOG_CHANNEL_ID)[4:], message_id)
link = f"https://t.me/c/{str(config.LOG_CHANNEL_ID)[4:]}/{message_id}"
return f"<b><a href='{link}'>Preview</a></b>"

async def log(self, text: str, name: str = '') -> int:
"""\nsend text message to log channel.
Expand Down

0 comments on commit ae2ea9c

Please sign in to comment.