Skip to content

Conversation

@vibraslap3
Copy link

This PR allows users to get a list of offers, including unsuccessful bids, for either the whole season, or a specific week.

Copy link
Owner

@cwendt94 cwendt94 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall looks good! Just some small comments.

'''Returns a list of free agent auction bids'''
if week is None:
bids = []
for week in range(0, 18):
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For base league this could be used for other sports, I would suggest using the field self.finalScoringPeriod for rnage

else:
data = self.espn_request.get_league_offers(week=week)
bids = data.get('transactions', [])
print(bids)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

left over print statement

@@ -0,0 +1,64 @@
from datetime import datetime
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this can be moved outside of football as base_offer.py so other sports can use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants