Skip to content

fix: revert activeCodeforces logic to show all rated users as active … - #235

Open
Shubham15986 wants to merge 1 commit into
RECursion-NITD:dev-apifrom
Shubham15986:hotfix-leaderboard-sync
Open

fix: revert activeCodeforces logic to show all rated users as active …#235
Shubham15986 wants to merge 1 commit into
RECursion-NITD:dev-apifrom
Shubham15986:hotfix-leaderboard-sync

Conversation

@Shubham15986

Copy link
Copy Markdown
Collaborator

Description

This PR combines all the critical hotfixes for the Leaderboard Codeforces and CodeChef sync functionality.

Related to PR #233 and Issue #163.

Key Changes

  • Cloudflare Bypass: Replaced Codeforces HTML scraping with the official user.ratedList JSON API to prevent AWS EC2 from being blocked by Captchas.
  • Strict Filtering: Fixed an issue where NIT Delhi students were accidentally fetched by making the organization filter strictly require "NIT Durgapur".
  • Default Active Status: Reverted the activeOnly check to default all fetched Codeforces rated users to Active, matching the behavior of the Codeforces Organization website and fixing the frontend "Inactive" bug.
  • CodeChef Timeout: Switched CodeChef to use cloudscraper and raised the timeout to 45 seconds to successfully scrape all 500+ members without timing out from AWS.

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.

1 participant