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

more robust parsing of user counts #113

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

Conversation

jtracey
Copy link
Contributor

@jtracey jtracey commented Jan 24, 2025

The current userstats-relay-country.csv has the row 2024-08-21,de,2e+05,160074,263639,74, which causes this line to choke on the 2e+05. Arguably this should be fixed upstream (presumably there's a script generating this somewhere that never encountered a large round number of users before), but since we're never going to see anonymized usage metrics that lose anything from floating point precision, this fix is fine too.

The latest userstats-relay-country.csv file has a row with scientific
notation. Parsing as a float first prevents failing on that.
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.

1 participant