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

Refactor/232 add foolproof checks for srs ratings and sql updates #233

Merged

Conversation

fabd
Copy link
Owner

@fabd fabd commented Dec 24, 2021

No description provided.

This check also prevents an "out of memory" error due to unexpected
loop logic following.

This will still prevent accessing the SRS chart; which is probably
better if a flashcard upate somehow messed the leitnerbox value -- to
prevent further reviews from happening.

But this will output errors in error_log().

Part of #232 resolution
Prevent updating flashcard in the DB if a refactoring / bug causes
leitnerbox to be NULL or zero for whatever reason.
Closes #232

Prevent bugs that may happen due to refactoring, or maybe a new client
that sends incorrect request.
@fabd fabd merged commit 16dd2c4 into master Dec 24, 2021
@fabd fabd deleted the refactor/232-add-foolproof-checks-for-srs-ratings-and-sql-updates branch January 6, 2022 16:32
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.

None yet

1 participant