#740: fix: Issue #468 REST API Integration for CodeChef: Retrieve Questions

Issue #740 by utkarsh4321

fix: Issue #468 REST API Integration for CodeChef: Retrieve Questions

Fix Issue #467

To fix this issue the following implementation takes place:

  • backend/users/controllers/userProfileController.js
    added checks for total, hard, medium and easy questions.
  • Updated
    backend/users/controllers/platforms/codechefUpdater.js
    to retrieve total questions from the codechef profile page.
Screenshot of the DB:
For Codechef:
<img width="198" alt="image" src="https://github.com/digitomize/digitomize/assets/30936607/fb550a64-624a-4407-b14a-c836f37b67f8">

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit



  • New Features
    • Improved the accuracy of user information extraction for CodeChef and Codeforces platforms.
  • Refactor
    • Enhanced the logic for handling HTTPS requests and concurrent data fetching for better performance and reliability.
  • Bug Fixes
    • Ensured default values are set for question data in user profiles to prevent data inconsistencies.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Was this page helpful?