Open chellygel opened 1 year ago
I've taken upon this issue.
Simply a new variable was created within ketchup/main.py
to take a integer for the amount of episodes estimating to be watched per week. That was supplied as an argument to dc.calculate_watch_schedule
and within the watch_schedule_builder.py
file, the argument was added as well, along with inserted as a param too.
At the end of the watch_schedule_builder.py
file. Using the previous if statement for per_day_limit
as a skeleton, I created a new one which takes the days_available
variable and divide that by a value of 7, which then creates our weeks_available
variable. The ceil function from within the Math module then divides the entire amount of episodes, by our new weeks_available
variable, to give us our desired outcome.
To myself, it works as intended. Going to attempt to write a test to ensure of this issue has been resolved.
A user may not be able to commit to watching every day of the week. Allow the user to specify days per week to reserve for watching.
Example: Utena has 39 episodes A user commits to only watching 2 days per week with a limit of 3 episodes per day That calculates to 6 episodes per week
Definition of Done: