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

Fix time slot determination #28

Merged
merged 7 commits into from
Jan 1, 2025
Merged

Fix time slot determination #28

merged 7 commits into from
Jan 1, 2025

Conversation

guerda
Copy link
Owner

@guerda guerda commented Jan 1, 2025

Fixes #26
The last slot was never added if it ended with the day. I now added a lot of tests and refactored it a little to make it more precise.

It has been tested with two real API results and it works as expected

I also added pytest to the CI build

@guerda guerda merged commit a82e4bd into main Jan 1, 2025
3 checks passed
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.

Bot does not cover time slots above 100% if it overlaps with the end or the start of the day
1 participant