diff options
Diffstat (limited to 'Aktywator/TeamNamesSettings.cs')
-rw-r--r-- | Aktywator/TeamNamesSettings.cs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Aktywator/TeamNamesSettings.cs b/Aktywator/TeamNamesSettings.cs index d8f8e6e..23cc865 100644 --- a/Aktywator/TeamNamesSettings.cs +++ b/Aktywator/TeamNamesSettings.cs @@ -58,7 +58,7 @@ namespace Aktywator } if (cbSecondRow.SelectedIndex == 2) { - ret.Append(" + VP"); + ret.Append(" + VP/IMP"); } } else @@ -99,7 +99,9 @@ namespace Aktywator ret.Append(" GROUP BY teams.id ORDER BY teams.id"); break; case 2: - ret.Append("CONCAT(SUM(IF(matches.homet = teams.id, vph+corrh, vpv+corrv)) + teams.score, ' VP') FROM teams LEFT JOIN matches ON (teams.id = matches.homet OR teams.id = matches.visit) AND matches.rnd < "); + ret.Append("CONCAT(SUM(IF(matches.homet = teams.id, vph+corrh, vpv+corrv)) + teams.score, ' "); + ret.Append(this.tournament.getPointsUnit()); + ret.Append("') FROM teams LEFT JOIN matches ON (teams.id = matches.homet OR teams.id = matches.visit) AND matches.rnd < "); ret.Append(cbRounds.SelectedItem); ret.Append(" GROUP BY teams.id ORDER BY teams.id"); break; |