Skip to content

Commit c561351

Browse files
author
Nick Shorter
committed
changed league to 2021
1 parent b42c71c commit c561351

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/sports/baseball/baseball.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def url_builder(self, args):
2828
return urls
2929

3030
async def run(self):
31-
self.logger.info('Running baseball API')
31+
self.logger.info('Running Baseball API')
3232
parsed = self.parse_args()
3333
api_data = {}
3434
for section, url in self.url_builder(parsed).items():

lib/sports/hockey/hockey.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ def url_builder(self, args):
2424
urls = {}
2525
base = "https://v1.hockey.api-sports.io/"
2626
if 'standings' in args:
27-
urls.update({'standings': base + f'standings?league=57&season=2020'})
27+
urls.update({'standings': base + f'standings?league=57&season=2021'})
2828
if 'next_game' in args:
2929
urls.update({'next_game': base + f"games?team={self.config.getint('team_id')}&league=57&season=2020&timezone=America/Chicago"})
3030
return urls
3131

3232
async def run(self):
33-
self.logger.info('Running baseball API')
33+
self.logger.info('Running Hockey API')
3434
parsed = self.parse_args()
3535
api_data = {}
3636
for section, url in self.url_builder(parsed).items():

0 commit comments

Comments
 (0)