Skip to content

Commit

Permalink
Change rounding to 2 decimal places (R055A#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
lulunac27a authored Aug 26, 2024
1 parent 4cd803b commit ba6072e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/generate_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ async def generate_overview(self) -> None:
if len(str(num_repos)) < TXT_SPACER_MAX_LEN
else add_unit(num_repos)
)
repos = f"{repos:,} [{'%g' % round(num_collab_repos / num_repos * 100, 1)}%]"
repos = f"{repos:,} [{'%g' % round(num_collab_repos / num_repos * 100, 2)}%]"
output = sub("{{ repos }}", repos, output)

collaborators_and_contributors = f"{await self.__stats.collaborators:,}"
Expand Down

0 comments on commit ba6072e

Please sign in to comment.