diff --git a/server.js b/server.js index ea484f0..f1f38d3 100644 --- a/server.js +++ b/server.js @@ -53,8 +53,8 @@ app.use(express.static(__dirname + '/public')); app.get('/', function (req, res) { var player_number = 0; - database.get("SELECT COUNT(*) FROM players", function (err, row) { - player_number = row; + database.get("SELECT * FROM players", function (err, row) { + player_number = row.count; }); res.render('index', diff --git a/views/index.jade b/views/index.jade index 16a5433..d9e6626 100644 --- a/views/index.jade +++ b/views/index.jade @@ -3,8 +3,6 @@ block content h2 Summary p | Registered players: #{player_num} - | vehicula. Sed auctor neque eu tellus - | rhuncus ut eleifend nibh porttitor. Ut in. p | Donec congue lacinia dui, a porttitor | lectus condimentum laoreet. Nunc eu