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 Kitsu ratingTwenty being typed as String #1191

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

MajorTanya
Copy link
Contributor

The Kitsu API docs (and the responses) type ratingTwenty as a "number" (Int in Kotlin, it's divided by 2 for a .5 step scale 0-10). It's nullable because an entry without a user rating returns null in that field.

This caused crashes when a user would attempt to add Kitsu as a tracker for an entry in Mihon while already having the entry tracked in Kitsu through some other means AND having assigned the entry a score on Kitsu.

The API docs and the responses type `ratingTwenty` as a "number" (Int
in Kotlin, it's divided by 2 for a .5 step scale 0-10). It's nullable
because an entry without a user rating returns `null` in that field.
@AntsyLich AntsyLich merged commit 001249a into mihonapp:main Sep 5, 2024
1 check passed
cuong-tran pushed a commit to komikku-app/komikku that referenced this pull request Sep 5, 2024
The API docs and the responses type `ratingTwenty` as a "number" (Int
in Kotlin, it's divided by 2 for a .5 step scale 0-10). It's nullable
because an entry without a user rating returns `null` in that field.

(cherry picked from commit 001249a)
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2024
@MajorTanya MajorTanya deleted the fix-kitsu-score-type branch October 24, 2024 22:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants