Skip to content

Commit 619b27c

Browse files
committed
add a header, reverse the rows
1 parent e122ea0 commit 619b27c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

lib/baseballbot/templates/components/pick_the_stick.rb

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class Baseballbot
44
module Templates
55
module Components
66
class PickTheStick
7-
BASE_URL = 'https://www.pick-the-stick.com/api/standings?api_token=%<token>s&team=%<team_code>s&sort=desc'
7+
BASE_URL = 'https://www.pick-the-stick.com/api/standings?api_token=%<token>s&team=%<team_code>s&sort=asc'
88

99
include MarkdownHelpers
1010

@@ -23,7 +23,11 @@ def initialize(subreddit)
2323
def to_s
2424
return '[](/pickthestick "Team not configured")' unless @subreddit.team&.code
2525

26-
table(headers: TABLE_HEADERS, rows:)
26+
<<~MARKDOWN
27+
# Pick the Stick Standings
28+
29+
#{table(headers: TABLE_HEADERS, rows:)}
30+
MARKDOWN
2731
end
2832

2933
protected

0 commit comments

Comments
 (0)