ipitio / backage

Endpoint behind badges for GitHub Packages
https://ipitio.github.io/backage/
MIT License
18 stars 10 forks source link

`date` for proton.json is 2024-07-08 #13

Closed jovezhong closed 3 months ago

jovezhong commented 3 months ago

Greetings,

I've been using your service for a while. Thank you. Today I noticed the ghcr badget is not working and realized maybe you have renamed the repo and updated it.

I changed the image URL from https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fipitio%2Fghcr-pulls%2Fmaster%2Findex.json&query=%24%5B%3F(%40.owner%3D%3D%22timeplus-io%22%20%26%26%20%40.repo%3D%3D%22proton%22%20%26%26%20%40.image%3D%3D%22proton%22)%5D.pulls&label=Docker%20Pull to https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2Fipitio%2Fbackage%2Fmaster%2Findex%2Ftimeplus-io%2Fproton%2Fproton.json&query=%24.downloads&label=Docker%20Pull. However the number looks a bit off.

Then I downloaded https://raw.githubusercontent.com/ipitio/backage/master/index/timeplus-io/proton/proton.json and found "date": "2024-07-08"

My impression is the number is updated at daily basis. Did I miss anything?

ipitio commented 3 months ago

Hi! Sorry about that, it should be updated now.

I added automated incremental discovery of packages, parallelism, and db rotation to handle the increasingly large workload, and have been fixing bugs i introduced in the process. I think I have most of them ironed out.

Each package is updated once in a batch, where a batch is however many days it takes to update all packages.

jovezhong commented 3 months ago

Thank you, appreciate you solving the issue so quickly. I confirmed the badge shows perfectly.