Skip to content

Commit

Permalink
shorten field
Browse files Browse the repository at this point in the history
  • Loading branch information
psykzz authored Dec 28, 2024
1 parent 645c098 commit 8fa367f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion movie_vote/movie_vote.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ async def generate_leaderboard(self, guild: discord.Guild, limit=5, watched_only
movie_list = movies[:limit] if limit else movies

for position, movie in enumerate(movie_list, start=1):
embed.add_field(name=f"#{position} {movie['title']} ({movie['year']})", value=f"_{', '.join(movie['genres'])}_\nhttps://www.imdb.com/title/tt{movie['imdb_id']}", inline=True)
embed.add_field(name=f"#{position} {movie['title']} ({movie['year']})", value=f"_{', '.join(movie['genres'])}_\n[IMDB](https://www.imdb.com/title/tt{movie['imdb_id']})", inline=True)
embed.add_field(name=f"Score", value=f"{movie['score']}", inline=True)
embed.add_field(name=f"\u200B", value=f"\u200B") # Empty field
return embed
Expand Down

0 comments on commit 8fa367f

Please sign in to comment.