Skip to content

Commit

Permalink
Fixed the width of the area displaying the team name.
Browse files Browse the repository at this point in the history
  • Loading branch information
sca-shota-sato committed Jun 10, 2020
1 parent 6b2dec6 commit 444afd0
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 444afd0

Please sign in to comment.