From 8e47a9a1e8a90a74fdb4c4ab449b6d8e800ce23e Mon Sep 17 00:00:00 2001 From: Flummi Date: Wed, 17 Aug 2016 22:23:16 +0200 Subject: [PATCH 1/4] modified: .gitignore --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0efb279..6d93b1a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ node_modules/ -cfg.cfg +cfg.json b/ From 2b38cfe5556e3ff18a8c1d416a29bf59a8849fa1 Mon Sep 17 00:00:00 2001 From: Flummi Date: Wed, 17 Aug 2016 21:11:51 +0000 Subject: [PATCH 2/4] json -> cfg --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 0efb279..6d93b1a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ node_modules/ -cfg.cfg +cfg.json b/ From bd8363dd68ae30143ab65f797bec7510511014cf Mon Sep 17 00:00:00 2001 From: Flummi Date: Wed, 17 Aug 2016 23:18:40 +0200 Subject: [PATCH 3/4] fixed --- s/index.tpl.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/s/index.tpl.html b/s/index.tpl.html index bb30ffd..736f952 100644 --- a/s/index.tpl.html +++ b/s/index.tpl.html @@ -7,9 +7,10 @@
- {% for item in items %}
+
+ {% for item in items %}
-
{% endfor %} +
From 1c33b16c9bf1cc4546dae4fab0d27ebcc717f089 Mon Sep 17 00:00:00 2001 From: jkhsjdhjs Date: Wed, 17 Aug 2016 23:23:08 +0200 Subject: [PATCH 4/4] fixes oldest and newest --- src/main.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.js b/src/main.js index 3dc6d07..b2dcb42 100644 --- a/src/main.js +++ b/src/main.js @@ -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');