Skip to content

Commit

Permalink
add #flair to wildcard teams in standings
Browse files Browse the repository at this point in the history
Signed-off-by: Steven Hoffman <[email protected]>
  • Loading branch information
Fustrate committed May 31, 2024
1 parent 2a4d35d commit 52e9ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/baseballbot/templates/components/league_standings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def team_cell(team) = "#{team_link(team)} #{team_record(team)}"
def team_link(team)
return "[#{team.abbreviation}][#{team.abbreviation}]" unless team.wildcard_position

"[#{team.abbreviation}](/r/#{subreddit_name(team)} \"WC#{team.wildcard_position}\")"
"[#{team.abbreviation}](/r/#{subreddit_name(team)}#flair \"WC#{team.wildcard_position}\")"
end

# We have to use a direct link instead of [][ABBR] because those links have #flair
Expand Down

0 comments on commit 52e9ba1

Please sign in to comment.