diff options
author | MichaĆ Zimniewicz <michzimny@users.noreply.github.com> | 2018-02-14 23:54:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-14 23:54:19 +0100 |
commit | 969e3dd244337fc5e9262cb27931159bfeaf6c0c (patch) | |
tree | 1c0a2ce06509fc4f23ee1d2b7d387d41317d091b /Aktywator/TeamyTournament.cs | |
parent | fa8e46acc24c5cf8b607531684b4c9858e4ebb33 (diff) | |
parent | 3a7b77ef81cc80e29d4f3f06a0bb66752e79c936 (diff) |
Merge pull request #40 from emkael/winter-bugfixes
Winter bugfixes
Diffstat (limited to 'Aktywator/TeamyTournament.cs')
-rw-r--r-- | Aktywator/TeamyTournament.cs | 9 |
1 files changed, 9 insertions, 0 deletions
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"; + } } } |