fixes oldest and newest

This commit is contained in:
jkhsjdhjs 2016-08-17 23:23:08 +02:00
parent ede0e97cf7
commit 1c33b16c9b

View File

@ -269,7 +269,7 @@ http.createServer((req, res) => {
if(rows[3].length)
data.first = rows[3][0].id;
if(rows[4].length)
data.first = rows[4][0].id;
data.last = rows[4][0].id;
}
res.writeHead(200, { 'Content-Type': 'text/html' });
res.end(tpl(data), 'utf-8');