Skip to content

Commit

Permalink
Fix long stat value units (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
R055A authored Oct 17, 2023
1 parent 33e8634 commit 24e1734
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 @@ -167,7 +167,7 @@ async def generate_overview(self) -> None:
pull_requests = pull_requests if len(str(pull_requests)) < TXT_SPACER_MAX_LEN \
else add_metric_unit(pull_requests)
issues = f"{await self.__stats.issues:,}"
issues = stars if len(str(issues)) < TXT_SPACER_MAX_LEN else add_metric_unit(issues)
issues = issues if len(str(issues)) < TXT_SPACER_MAX_LEN else add_metric_unit(issues)
pull_requests_and_issues = \
pull_requests + ' ' * max(1, TXT_SPACER_MAX_LEN - len(str(pull_requests)) + 1) + '| ' + issues
output = sub("{{ pull_requests_and_issues }}",
Expand Down

0 comments on commit 24e1734

Please sign in to comment.