From 1a0d4323cd25b1653663013ca3183fb0b67a878e Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 31 Jul 2017 14:32:55 +0200 Subject: classes indicating winners/losers of completed matches --- playoff.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'playoff.py') diff --git a/playoff.py b/playoff.py index 208af65..70f4925 100644 --- a/playoff.py +++ b/playoff.py @@ -53,6 +53,8 @@ def get_match_table(match): rows = '' for team in match.teams: rows += p_temp.MATCH_TEAM_ROW % ( + ' '.join(['winner' if team.name == match.winner else '', + 'loser' if team.name == match.loser else '']).strip(), match.link, team.name, ' / '.join([get_shortname(name) for name in team.name.split('
')]), -- cgit v1.2.3