League results fixed.
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -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>");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user