mozilla / PollBot

Robots for checking if things have been delivered
https://pollbot.services.mozilla.com/v1
Mozilla Public License 2.0
10 stars 15 forks source link

Output uptake message with 3 decimals #481

Open pascalchevrel opened 1 month ago

pascalchevrel commented 1 month ago

In whattrainisitnow.com, I parse the message field in https://pollbot.services.mozilla.com/v1/firefox/130.0/telemetry/main-summary-uptake to extract the uptake rate.

This rate only has 1 decimal, could we have 3 decimals instead to reduce the rounding?

I believe just changing this line: https://pollbot.services.mozilla.com/v1/firefox/130.0/telemetry/main-summary-uptake

Not a python person, but I think that changing {:.1f} to {:.3f} would probably do it.

Happy to make a pull request if necessary.

Thanks

JohanLorenzo commented 1 month ago

Fixed in https://github.com/mozilla/PollBot/pull/482