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

Not updating trophy #310

Open
OS-Scratch opened this issue Dec 9, 2024 · 3 comments
Open

Not updating trophy #310

OS-Scratch opened this issue Dec 9, 2024 · 3 comments

Comments

@OS-Scratch
Copy link

After embedding the trophies in my README, they worked fine for about 5 days. Suddenly they don't start registering any changes I make, such as stars, commits or issues. This is pretty annoying, as I can't wait to see how much I need to the next trophy. Is there a way to sync manually?

@karthikyadav-git
Copy link

Is there a way to sync manually?
Yes, there is.
You can fork this repo and host that on vercel or render or wherever else you prefer for yourself and use that to show trophies on your profile.

@alexcastrodev
Copy link
Collaborator

Is there a way to sync manually? Yes, there is. You can fork this repo and host that on vercel or render or wherever else you prefer for yourself and use that to show trophies on your profile.

Can’t force sync.

Our cache is in Redis, set to 4 hours, which you can check in the utils.ts file.

We did this to avoid excessive usage by the same user and to prevent hitting GitHub’s API rate limit.

There’s no magic; we fetch the statistics from GitHub and display the result.

If nothing changed that quickly, it might be GitHub’s own cache.

You can fork the project, use your own API key, comment out the cache reading, and if the results are significantly different (which I find unlikely), you can comment here again, and we’ll take another look.

@OS-Scratch
Copy link
Author

But I don't know how to do the APIs and stuff... I just starting using GitHub...

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

No branches or pull requests

3 participants