Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: broken codeforces badge. #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jun 8, 2022

  1. fix: broken codeforces badge.

    Codeforces badge was broken due to the change of page layout. CP-Badge was not able to parse the rating properly. The issue has been fixed by using the new codeforces public API which returns JSON formatted data containing users' information. Fix and improvements are pointed out below.
    
    Changes:
    
    - Codeforces API is used to retrieve user's information.
    
    - Unresponsive API exceptions are handled. A [-1, black] is returned.
    
    - conditional statements are simplified.
    
    - Docstring updated for function.
    
    Resolves: kehsihba19#24
    sudiptob2-bot committed Jun 8, 2022
    Configuration menu
    Copy the full SHA
    2214f35 View commit details
    Browse the repository at this point in the history