Skip to content

fix: Use diffcalc for star rating in /relax top#1003

Merged
MaxOhn merged 3 commits into
MaxOhn:mainfrom
Chiffario:rx-use-diffcalc
Apr 12, 2025
Merged

fix: Use diffcalc for star rating in /relax top#1003
MaxOhn merged 3 commits into
MaxOhn:mainfrom
Chiffario:rx-use-diffcalc

Conversation

@Chiffario
Copy link
Copy Markdown
Contributor

@Chiffario Chiffario commented Apr 11, 2025

We love testing in production :)

Enables use of diffcalc for /relax top as Relaxation Vault does not return star rating with mods applied. Currently done per-page instead of precalculating for all pages at once as Vault's API isn't paginated and I'm slightly worried about having to calculate a thousand scores on top of having to actually retrieve them in the first place

Important caveat - this potentially affects sorting by star rating, but I'm not sure how to fix that without allowing the previous issue to persist, as if you calculate only a portion of scores (e.g. 100 at a time), some might slip through anyway

Copy link
Copy Markdown
Owner

@MaxOhn MaxOhn left a comment

Choose a reason for hiding this comment

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

Good catch with the sorting issue. I think it's best to remove the sorting option by star rating entirely then unfortunately.

Comment thread bathbot/src/active/impls/relax/top.rs Outdated
Comment thread bathbot/src/active/impls/relax/top.rs Outdated
@MaxOhn MaxOhn merged commit 634673c into MaxOhn:main Apr 12, 2025
3 checks passed
@Chiffario Chiffario deleted the rx-use-diffcalc branch April 15, 2025 11:37
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