Skip to content
Permalink
Browse files

Don't list users that have submissions in the DB but are not listed i…

…n the config file in the contest result index page.
  • Loading branch information...
VittGam committed Apr 15, 2018
1 parent 309bcee commit 65f1d6f689c658e3b6d8c8cc2615a0a218d3797d
Showing with 4 additions and 1 deletion.
  1. +4 −1 server/build_results.js
@@ -231,7 +231,10 @@ db.each('SELECT id, username, code, timestamp FROM userdata ORDER BY timestamp D
}
});
contestTableHtml += '</tr>';
Object.keys(userTimestamps).sort(function(a, b){

Object.keys(serverConfig.users).filter(function(currusername){
return !!userTimestamps.hasOwnProperty(currusername);
}).sort(function(a, b){
if (userPoints[a] != userPoints[b]) {
return userPoints[b] - userPoints[a];
}

0 comments on commit 65f1d6f

Please sign in to comment.
You can’t perform that action at this time.