Skip to content

Commit

Permalink
Merge pull request #10 from nre-ableton/nre/master/no-spoilers-in-rec…
Browse files Browse the repository at this point in the history
…ords

Don't show team records if show_scores disabled
  • Loading branch information
ivankokan committed Dec 29, 2020
2 parents 49fffd7 + 29a7f4e commit 3fc07b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/games.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,12 @@ def addGamesLinks(date='', video_type="archive"):
if video_type == "live":
name = utils.toLocalTimezone(game_start_datetime_est).strftime("%Y-%m-%d (at %I:%M %p)")

name += " %s (%s) vs %s (%s)" % (visitor_name, vr, host_name, hr)
name += " %s" % visitor_name
if vars.show_scores:
name += " (%s)" % vr
name += " vs. %s" % host_name
if vars.show_scores:
name += " (%s)" % hr

if playoff_game_number != 0:
name += ' (game %d)' % (playoff_game_number)
Expand Down

0 comments on commit 3fc07b8

Please sign in to comment.