summaryrefslogtreecommitdiff
path: root/Aktywator/TeamyTournament.cs
diff options
context:
space:
mode:
authorMichaƂ Zimniewicz <michzimny@users.noreply.github.com>2018-02-14 23:54:19 +0100
committerGitHub <noreply@github.com>2018-02-14 23:54:19 +0100
commit969e3dd244337fc5e9262cb27931159bfeaf6c0c (patch)
tree1c0a2ce06509fc4f23ee1d2b7d387d41317d091b /Aktywator/TeamyTournament.cs
parentfa8e46acc24c5cf8b607531684b4c9858e4ebb33 (diff)
parent3a7b77ef81cc80e29d4f3f06a0bb66752e79c936 (diff)
Merge pull request #40 from emkael/winter-bugfixes
Winter bugfixes
Diffstat (limited to 'Aktywator/TeamyTournament.cs')
-rw-r--r--Aktywator/TeamyTournament.cs9
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";
+ }
}
}