diff options
Diffstat (limited to 'Aktywator')
-rw-r--r-- | Aktywator/Bws.cs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Aktywator/Bws.cs b/Aktywator/Bws.cs index e111a4b..31686c9 100644 --- a/Aktywator/Bws.cs +++ b/Aktywator/Bws.cs @@ -363,7 +363,7 @@ namespace Aktywator int count = 0, countNew = 0, SKOK_STOLOW = 100; OleDbDataReader d; startRounds = startRounds.Trim(); - + string fromRound = sql.selectOne("SELECT min(`Round`) FROM RoundData WHERE NSPair>0"); if (tournament.type != Tournament.TYPE_TEAMY) { if (tournament.type == Tournament.TYPE_PARY && startRounds.Length > 0) @@ -372,13 +372,12 @@ namespace Aktywator } else { - string fromRound = sql.selectOne("SELECT min(`Round`) FROM RoundData WHERE NSPair>0"); d = sql.select("SELECT `Section`, `Table`, NSPair, EWPair FROM RoundData WHERE `Round`=" + fromRound); } } else { - d = sql.select("SELECT `Section`, `Table`, NSPair, EWPair FROM RoundData WHERE `Table`<=" + SKOK_STOLOW); + d = sql.select("SELECT `Section`, `Table`, NSPair, EWPair FROM RoundData WHERE `Round`=" + fromRound + " AND `Table`<=" + SKOK_STOLOW); } try |