Skip to content

Commit

Permalink
drop genres for now
Browse files Browse the repository at this point in the history
  • Loading branch information
psykzz authored Dec 28, 2024
1 parent 8fa367f commit 4aa2b27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion movie_vote/movie_vote.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,9 @@ 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'])}_\n[IMDB](https://www.imdb.com/title/tt{movie['imdb_id']})", inline=True)
genres = f"_{', '.join(movie['genres'])}_\n"
imdb_link = f"[IMDB](https://www.imdb.com/title/tt{movie['imdb_id']})"
embed.add_field(name=f"#{position} {movie['title']} ({movie['year']})", value=f"{imdb_link}", 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 4aa2b27

Please sign in to comment.