Skip to content

Commit

Permalink
Fix incorrect variable
Browse files Browse the repository at this point in the history
Although, currently it does not get run.
  • Loading branch information
Saturn committed Jan 16, 2019
1 parent 818c474 commit 78d1a46
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 @@ -134,7 +134,7 @@ def league_scores(self, total_data, time, show_datetime,
for match in total_data['matches']:
self.scores(self.parse_result(match), add_new_line=not show_datetime)
if show_datetime:
click.secho(' %s' % Stdout.utc_to_local(data["date"],
click.secho(' %s' % Stdout.utc_to_local(match["utcDate"],
use_12_hour_format,
show_datetime),
fg=self.colors.TIME)
Expand Down Expand Up @@ -165,7 +165,7 @@ def scores(self, result, add_new_line=True):
def parse_result(self, data):
"""Parses the results and returns a Result namedtuple"""
def valid_score(score):
return "" if score == None else score
return "" if score is None else score

return self.Result(
data["homeTeam"]["name"],
Expand Down

0 comments on commit 78d1a46

Please sign in to comment.