fiqus / coophub

Cooperatives repos over the world! 🌈🌎
https://coophub.io
MIT License
57 stars 28 forks source link

Wrong Languages % in the index chart #58

Closed pbrudnick closed 4 years ago

pbrudnick commented 4 years ago

There's a bug with the languages percentage for all the orgs (/api/languages):

  1. The calculation is being done with bytes, we should use the sum of org percentages. So, it does not affect if there is a repo with a LOT of bytes of one language, instead of the percentage of that language in the org.
  2. The GitLab API retrieves language percentages and not bytes, so the number of bytes couldn't be used to calculate totals anymore.

Proposed solution: