Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create week data when the associated episode is created #42

Open
JoeKennedy opened this issue Aug 3, 2017 · 0 comments
Open

Create week data when the associated episode is created #42

JoeKennedy opened this issue Aug 3, 2017 · 0 comments

Comments

@JoeKennedy
Copy link
Owner

This will have a few potential benefits:

  1. airEpisode will only be necessary for marking an episode "Airing"; when determining the current week, just use the air date of the episode, rather than grabbing the most recent week. There could probably be some helper functions here, like getCurrentEpisode and getCurrentWeek.
  2. I can create the episodes whenever, because I wouldn't have to worry about them being created after a certain time.
  3. We can grab the current performance for each player to accurately show their current cumulative points, i.e. the points they've scored in the last (for this season) seven scored weeks. This might help further explain the weighted points system, and plus, more numbers!
  4. Lineups no longer need to be sealed by airEpisode running and functioning properly, just use getCurrentWeek to determine which week to use for starting, benching, claiming, etc. players.
@JoeKennedy JoeKennedy changed the title Create weeks when the episode is created Create week data when the associated episode is created Aug 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant