From dd6f3e5903af46510b46d4c8403fc41030c278e5 Mon Sep 17 00:00:00 2001 From: Christian Wendt Date: Sat, 21 Mar 2020 17:42:48 -0700 Subject: [PATCH] clean up --- README.md | 6 +++--- espn_api/requests/espn_requests.py | 2 -- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 5a75df22..8202d9ff 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ![](https://github.com/cwendt94/espn-api/workflows/Espn%20API/badge.svg) -![](https://github.com/cwendt94/espn-api/workflows/Espn%20API%20Integration%20Test/badge.svg) [![codecov](https://codecov.io/gh/cwendt94/ff-espn-api/branch/master/graphs/badge.svg)](https://codecov.io/gh/cwendt94/ff-espn-api) [![Join the chat at https://gitter.im/ff-espn-api/community](https://badges.gitter.im/ff-espn-api/community.svg)](https://gitter.im/ff-espn-api/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![PyPI version](https://badge.fury.io/py/espn-api.svg)](https://badge.fury.io/py/espn-api) +![](https://github.com/cwendt94/espn-api/workflows/Espn%20API%20Integration%20Test/badge.svg) [![codecov](https://codecov.io/gh/cwendt94/espn-api/branch/master/graphs/badge.svg)](https://codecov.io/gh/cwendt94/espn-api) [![Join the chat at https://gitter.im/ff-espn-api/community](https://badges.gitter.im/ff-espn-api/community.svg)](https://gitter.im/ff-espn-api/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [![PyPI version](https://badge.fury.io/py/espn-api.svg)](https://badge.fury.io/py/espn-api) # ff-espn-api -> espn-api ## ESPN API @@ -32,7 +32,7 @@ from espn_api.basketball import League # Init league = League(league_id=222, year=2019, username='username', password='password') ``` -[For more usage and API details head over to the Wiki!](https://github.com/cwendt94/ff-espn-api/wiki) +[For more usage and API details head over to the Wiki!](https://github.com/cwendt94/espn-api/wiki) ### Run Tests ``` @@ -42,7 +42,7 @@ python3 setup.py nosetests ## Issue Reporting If you find a bug follow the steps below for reporting. -1. Open a [new issue](https://github.com/cwendt94/ff-espn-api/issues) with a brief description of the bug for the title. In the title also add which sport (Football or Basketball) +1. Open a [new issue](https://github.com/cwendt94/espn-api/issues) with a brief description of the bug for the title. In the title also add which sport (Football or Basketball) 2. Run the application in debug mode to view ESPN API request's and response's ```python diff --git a/espn_api/requests/espn_requests.py b/espn_api/requests/espn_requests.py index 43a653a2..3c367e2c 100644 --- a/espn_api/requests/espn_requests.py +++ b/espn_api/requests/espn_requests.py @@ -14,8 +14,6 @@ def checkRequestStatus(status: int) -> None: elif status != 200: raise Exception('Unknown %s Error' % status) -# thoughts decorators, always use league endpoint and then decator does generic?? Prob?? - class EspnFantasyRequests(object): def __init__(self, sport: str, year: int, league_id: int, cookies: dict = None, logger: Logger = None): if sport not in FANTASY_SPORTS: