- Deck statistics no longer include cancelled games
This commit is contained in:
@@ -242,8 +242,8 @@ public class GameHistoryDAO {
|
||||
try {
|
||||
PreparedStatement statement = connection.prepareStatement(
|
||||
"select deck_name, format_name, sum(win), sum(lose) from" +
|
||||
" (select winner_deck_name as deck_name, format_name, 1 as win, 0 as lose from game_history where winner=? and (tournament is null or tournament = 'Casual')" +
|
||||
" union all select loser_deck_name as deck_name, format_name, 0 as win, 1 as lose from game_history where loser=? and (tournament is null or tournament = 'Casual')) as u" +
|
||||
" (select winner_deck_name as deck_name, format_name, 1 as win, 0 as lose from game_history where winner=? and (tournament is null or tournament = 'Casual') and (win_reason <> 'Game cancelled due to error')" +
|
||||
" union all select loser_deck_name as deck_name, format_name, 0 as win, 1 as lose from game_history where loser=? and (tournament is null or tournament = 'Casual') and (win_reason <> 'Game cancelled due to error')) as u" +
|
||||
" group by deck_name, format_name order by format_name, deck_name");
|
||||
try {
|
||||
statement.setString(1, player.getName());
|
||||
@@ -274,8 +274,8 @@ public class GameHistoryDAO {
|
||||
try {
|
||||
PreparedStatement statement = connection.prepareStatement(
|
||||
"select deck_name, format_name, sum(win), sum(lose) from" +
|
||||
" (select winner_deck_name as deck_name, format_name, 1 as win, 0 as lose from game_history where winner=? and (tournament is not null and tournament <> 'Casual')" +
|
||||
" union all select loser_deck_name as deck_name, format_name, 0 as win, 1 as lose from game_history where loser=? and (tournament is not null and tournament <> 'Casual')) as u" +
|
||||
" (select winner_deck_name as deck_name, format_name, 1 as win, 0 as lose from game_history where winner=? and (tournament is not null and tournament <> 'Casual') and (win_reason <> 'Game cancelled due to error')" +
|
||||
" union all select loser_deck_name as deck_name, format_name, 0 as win, 1 as lose from game_history where loser=? and (tournament is not null and tournament <> 'Casual') and (win_reason <> 'Game cancelled due to error')) as u" +
|
||||
" group by deck_name, format_name order by format_name, deck_name");
|
||||
try {
|
||||
statement.setString(1, player.getName());
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
<pre style="font-size:80%">
|
||||
<b>21 Nov. 2012</b>
|
||||
- "Librarian, Keeper of Ancient Texts" should no longer cancel current game when used its Regroup ability.
|
||||
- Deck statistics no longer include cancelled games
|
||||
|
||||
<b>18 Nov. 2012</b>
|
||||
- "Deceit" now allows to prevent only discarding your cards.
|
||||
|
||||
Reference in New Issue
Block a user