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

Conversation

sudiptob2
Copy link

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: #24

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
@vercel
Copy link

vercel bot commented Jun 8, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
cp-badges ❌ Failed (Inspect) Jun 8, 2022 at 7:43PM (UTC)

@sudiptob2
Copy link
Author

Hi, how can I find the reason of failed checks.

@romanchekashov
Copy link

https://cp-logo.vercel.app/codeforces/sladkayaKlubnichka
Hi! Still not working?(

@sudiptob2
Copy link
Author

Yeah, @romanchekashov that's why I made this one please take a look at this blog post in codeforces

Project link: https://github.com/sudiptob2/cf-stats

image

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.

codeforces badge is not working
3 participants