Skip to content

Commit

Permalink
Remove double space in /peek message
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotgoodrich committed Feb 20, 2024
1 parent c736290 commit 36c992f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion discord_handler/discord_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def display_users_by_nomination(users):
vote_count = film.CastVotes + film.AttendanceVotes
# Surround links with <> to avoid Discord previewing the links
film = (
f" [{film.FilmName}](<https://imdb.com/title/tt{film.IMDbID}>)"
f"[{film.FilmName}](<https://imdb.com/title/tt{film.IMDbID}>)"
if film.IMDbID is not None
else film.FilmName
)
Expand Down
8 changes: 4 additions & 4 deletions discord_handler/test_discord_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def test_workflow(self):
"data": {
"content": "The current list of nominations are:\n"
+ "1. My Film Name (0 πŸ—³) <@abc>\n"
+ "2. [My Other Film](<https://imdb.com/title/tt012345>) (0 πŸ—³) <@def>",
+ "2. [My Other Film](<https://imdb.com/title/tt012345>) (0 πŸ—³) <@def>",
"flags": DiscordFlag.EPHEMERAL_FLAG,
},
},
Expand Down Expand Up @@ -461,7 +461,7 @@ def test_workflow(self):
"data": {
"content": "The current list of nominations are:\n"
+ "1. My Film Name (1 πŸ—³) <@abc>\n"
+ "2. [My Other Film](<https://imdb.com/title/tt012345>) (0 πŸ—³) <@def>",
+ "2. [My Other Film](<https://imdb.com/title/tt012345>) (0 πŸ—³) <@def>",
"flags": DiscordFlag.EPHEMERAL_FLAG,
},
},
Expand Down Expand Up @@ -601,7 +601,7 @@ def test_workflow(self):
"type": DiscordResponse.CHANNEL_MESSAGE_WITH_SOURCE,
"data": {
"content": "The current list of nominations are:\n"
+ "1. [My Other Film](<https://imdb.com/title/tt012345>) (1 πŸ—³) <@def>\n"
+ "1. [My Other Film](<https://imdb.com/title/tt012345>) (1 πŸ—³) <@def>\n"
+ "2. [No nomination] <@abc>",
"flags": DiscordFlag.EPHEMERAL_FLAG,
},
Expand Down Expand Up @@ -751,7 +751,7 @@ def test_workflow(self):
"type": DiscordResponse.CHANNEL_MESSAGE_WITH_SOURCE,
"data": {
"content": "The current list of nominations are:\n"
+ "1. [My Other Film](<https://imdb.com/title/tt012345>) (1 πŸ—³) <@def>\n"
+ "1. [My Other Film](<https://imdb.com/title/tt012345>) (1 πŸ—³) <@def>\n"
+ "2. [No nomination] <@abc>",
"flags": DiscordFlag.EPHEMERAL_FLAG,
},
Expand Down

0 comments on commit 36c992f

Please sign in to comment.