League results fixed.

This commit is contained in:
marcins78@gmail.com
2011-12-27 16:57:19 +00:00
parent ede47232ee
commit 41c28c8696
2 changed files with 2 additions and 2 deletions

View File

@@ -62,7 +62,7 @@ public class LeaguePointsDAO {
try {
Connection conn = _dbAccess.getDataSource().getConnection();
try {
PreparedStatement statement = conn.prepareStatement("select player_name, sum(points), count(*) from league_points where league_type=? order by 2 desc");
PreparedStatement statement = conn.prepareStatement("select player_name, sum(points), count(*) from league_points where league_type=? group by player_name order by 2 desc");
try {
statement.setString(1, league.getType());
ResultSet rs = statement.executeQuery();

View File

@@ -38,7 +38,7 @@ var LeagueResultsUI = Class.extend({
$("#leagueResults").append("<h2>Overall results</h2>");
var standings = serie.getElementsByTagName("leagueStanding");
var standings = league.getElementsByTagName("leagueStanding");
if (standings.length > 0) {
var standingsTable = $("<table class='standings'></table>");