From 3a7b77ef81cc80e29d4f3f06a0bb66752e79c936 Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 4 Feb 2018 15:47:16 +0100 Subject: Fixes #39 Proper team score suffix for imps only tournament --- Aktywator/TeamyTournament.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Aktywator/TeamyTournament.cs') diff --git a/Aktywator/TeamyTournament.cs b/Aktywator/TeamyTournament.cs index 8da063d..01034b5 100644 --- a/Aktywator/TeamyTournament.cs +++ b/Aktywator/TeamyTournament.cs @@ -91,5 +91,14 @@ namespace Aktywator finished.Close(); return segment; } + + internal String getPointsUnit() + { + MySqlDataReader points = this.mysql.select("SELECT imponly FROM admin"); + points.Read(); + int unit = points.GetInt32(0); + points.Close(); + return (unit < 0) ? "IMP" : "VP"; + } } } -- cgit v1.2.3