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

Fixes type bug where difficulty became an int if it exceeded the thresholds #74

Merged

Conversation

TWAnthony
Copy link
Contributor

The lines thresholding the difficulty between 1 and 10 were causing difficulty to become an integer, which then caused it to fail a type check later.

This change:

  1. fixes the thresholding of difficulty to be between 1.0 and 10.0
  2. adds a test of multiple successful reviews in quick succession to hit this threshold

Copy link
Member

@joshdavham joshdavham left a comment

Choose a reason for hiding this comment

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

LGTM

Great catch! Thank you

@joshdavham joshdavham added this pull request to the merge queue Dec 29, 2024
Merged via the queue into open-spaced-repetition:main with commit c97c0da Dec 29, 2024
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.

2 participants