Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Trivia] Remove an unnecessary .format #4175

Merged
merged 1 commit into from Aug 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Remove an unnecessary .format
  • Loading branch information
Flame442 committed Aug 9, 2020
commit 9ab536235bafc2b42c3c17d7ce26f1cc64482a81
2 changes: 1 addition & 1 deletion redbot/cogs/trivia/trivia.py
Expand Up @@ -539,7 +539,7 @@ def _get_leaderboard(data: dict, key: str, top: int):
)
padding = [" " * (len(h) - len(f)) for h, f in zip(headers, fields)]
fields = tuple(f + padding[i] for i, f in enumerate(fields))
lines.append(" | ".join(fields).format(member=member, **m_data))
lines.append(" | ".join(fields))
if rank == top:
break
return "\n".join(lines)
Expand Down