diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/db/DbGameHistoryDAO.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/db/DbGameHistoryDAO.java index b93215a09..9ba902f45 100644 --- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/db/DbGameHistoryDAO.java +++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/db/DbGameHistoryDAO.java @@ -155,9 +155,7 @@ public class DbGameHistoryDAO implements GameHistoryDAO { try { Connection connection = _dbAccess.getDataSource().getConnection(); try { - // 5 minutes minimum game - long minTime = 1000 * 60 * 5; - PreparedStatement statement = connection.prepareStatement("select count(*) from game_history where end_date>=? and end_date" + minTime); + PreparedStatement statement = connection.prepareStatement("select count(*) from game_history where end_date>=? and end_date getCasualGamesPlayedPerFormat(long from, long duration) { try { Connection connection = _dbAccess.getDataSource().getConnection(); diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/db/GameHistoryDAO.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/db/GameHistoryDAO.java index 3feb84935..b80ac0aff 100644 --- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/db/GameHistoryDAO.java +++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/db/GameHistoryDAO.java @@ -18,8 +18,6 @@ public interface GameHistoryDAO { public int getGamesPlayedCount(long from, long duration); - public long getOldestGameHistoryEntry(); - public Map getCasualGamesPlayedPerFormat(long from, long duration); public List getCasualPlayerStatistics(Player player); diff --git a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/GameHistoryService.java b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/GameHistoryService.java index eba730782..e4b428a85 100644 --- a/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/GameHistoryService.java +++ b/gemp-lotr/gemp-lotr-server/src/main/java/com/gempukku/lotro/game/GameHistoryService.java @@ -48,10 +48,6 @@ public class GameHistoryService { return _gameHistoryDAO.getGamesPlayedCount(from, duration); } - public long getOldestGameHistoryEntry() { - return _gameHistoryDAO.getOldestGameHistoryEntry(); - } - public GameHistoryStatistics getGameHistoryStatistics(long from, long duration) { GameHistoryStatistics stats = new GameHistoryStatistics(from, duration); stats.init(_gameHistoryDAO);