Skip to content

Commit

Permalink
Merge pull request #148 from sca-shota-sato/fix-the-width-of-team-names
Browse files Browse the repository at this point in the history
Fixed the width of the area displaying the team name.
  • Loading branch information
Saturn authored Jun 12, 2020
2 parents 6b2dec6 + 444afd0 commit 5d22f06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soccer/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ def scores(self, result, add_new_line=True):
else:
homeColor = awayColor = self.colors.TIE

click.secho('%-25s %2s' % (result.homeTeam, result.goalsHomeTeam),
click.secho('%-26s %2s' % (result.homeTeam, result.goalsHomeTeam),
fg=homeColor, nl=False)
click.secho(" vs ", nl=False)
click.secho('%2s %s' % (result.goalsAwayTeam,
result.awayTeam.rjust(25)), fg=awayColor,
result.awayTeam.rjust(26)), fg=awayColor,
nl=add_new_line)

def parse_result(self, data):
Expand Down

0 comments on commit 5d22f06

Please sign in to comment.