Skip to content

Commit 691f3a6

Browse files
committed
Removed the redundant index number in log results
1 parent 119c114 commit 691f3a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cogs/modmail.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ async def loglink(self, ctx):
358358

359359
def format_log_embeds(self, logs, avatar_url, title='Previous Logs'):
360360
embeds = []
361-
for index, entry in enumerate(logs, start=1):
361+
for entry in logs:
362362

363363
key = entry['key']
364364

@@ -375,7 +375,7 @@ def format_log_embeds(self, logs, avatar_url, title='Previous Logs'):
375375

376376
embed = discord.Embed(color=discord.Color.blurple(),
377377
timestamp=created_at)
378-
embed.set_author(name=f'{title} ({index}) - {username}',
378+
embed.set_author(name=f'{title} - {username}',
379379
icon_url=avatar_url,
380380
url=log_url)
381381
embed.url = log_url

0 commit comments

Comments
 (0)