meooow25 / carrot

A browser extension for Codeforces rating prediction
MIT License
114 stars 4 forks source link

Fix performance calculation after contest #53

Closed nullchilly closed 4 months ago

nullchilly commented 5 months ago

Fix #52

Screenshot taken from https://codeforces.com/contest/1919/standings/page/17 and https://codeforces.com/contest/1919/ratings/page/33

image

meooow25 commented 4 months ago

Hi, I've moved the rating adjustment from the predictor to the contest cache. This way we can conditionally apply the adjustment to new contests (after fake ratings) while leaving alone the near-perfect performance values for old contests.

I will merge this after testing on CF. Unfortunately I can't do that right now since the API has been put behind the Cloudflare human check (again) (lol).

meooow25 commented 4 months ago

Ok things seem to be alright, the result for this example is as expected.

Screenshot 2024-04-11 Standings - Hello 2024 - Codeforces

meooow25 commented 4 months ago

Thanks for doing this, even if I ended up shifting the logic elsewhere :ghosthug: