diff options
author | emkael <emkael@tlen.pl> | 2017-09-19 19:35:01 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2017-09-19 19:35:01 +0200 |
commit | a9f5093df64222395f6b0de21e6afee954c7a9a2 (patch) | |
tree | b0b5687d5bd319529ff1d4c0a518caea066fae62 /Aktywator/TeamyTournament.cs | |
parent | 57f308f755a8b5107a801e1d0808d1541b3b7968 (diff) |
Writing and sanitizing additional info for Teamy tournaments
Diffstat (limited to 'Aktywator/TeamyTournament.cs')
-rw-r--r-- | Aktywator/TeamyTournament.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Aktywator/TeamyTournament.cs b/Aktywator/TeamyTournament.cs index bd6b619..990583f 100644 --- a/Aktywator/TeamyTournament.cs +++ b/Aktywator/TeamyTournament.cs @@ -31,12 +31,12 @@ namespace Aktywator override internal Dictionary<int, List<string>> getNameList() { Dictionary<int, List<String>> teams = new Dictionary<int, List<string>>(); - MySqlDataReader dbData = this.mysql.select("SELECT id, fullname NAME FROM teams"); + MySqlDataReader dbData = this.mysql.select(MainForm.teamNames.getQuery()); while (dbData.Read()) { List<string> names = new List<string>(); names.Add(dbData.IsDBNull(1) ? " " : dbData.GetString(1)); - names.Add(" "); + names.Add(dbData.IsDBNull(2) ? " " : dbData.GetString(2)); teams.Add(dbData.GetInt32(0), names); } dbData.Close(); |