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 #79: weekly average not calculated correctly #81

Merged
merged 1 commit into from
Dec 2, 2020

Conversation

conrad57
Copy link
Contributor

@conrad57 conrad57 commented Jul 7, 2020

Privacy - to indicate I read CONTRIBUTING.md

This fixes #79 . The average was not calculated correctly due to the start and end date used in the database query. Since the dates contained the current time (e.g. 18:30:23), entries made before that time on the first day of the period were not considered for the calculation. This is fixed by handing dates with time set to 00:00:00.00 in to the database query.

@Kamuno Kamuno added the bug Something isn't working label Jul 12, 2020
Copy link
Member

@Kamuno Kamuno left a comment

Choose a reason for hiding this comment

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

Thank you! :) Looks good.

@Kamuno Kamuno merged commit 32a1bb1 into SecUSo:master Dec 2, 2020
@conrad57 conrad57 deleted the fix/master/weekdays branch April 20, 2021 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Weekly Statistics not displayed or calculated correctly
2 participants