#740: fix: Issue #468 REST API Integration for CodeChef: Retrieve Questions
Issue #740 by utkarsh4321
To fix this issue the following implementation takes place:
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 -->
fix: Issue #468 REST API Integration for CodeChef: Retrieve Questions
Fix Issue #467To fix this issue the following implementation takes place:
added checks for total, hard, medium and easy questions.backend/users/controllers/userProfileController.js- Updated
to retrieve total questions from the codechef profile page.backend/users/controllers/platforms/codechefUpdater.js
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.