Started editing and adding real content.
This commit is contained in:
parent
fa596ab21c
commit
4b09e35748
2 changed files with 2 additions and 4 deletions
|
@ -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',
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue