From cfc81a56f1e020b21156763eff5e8889dad1b040 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Wed, 12 Sep 2018 01:54:31 -0700 Subject: [PATCH] Fix 'time' for now, and removed a console.log Signed-off-by: James Ketrenos --- frontend/src/ketr-photos/ketr-photos.html | 3 +++ server/routes/photos.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/ketr-photos/ketr-photos.html b/frontend/src/ketr-photos/ketr-photos.html index 4829e44..03ae217 100755 --- a/frontend/src/ketr-photos/ketr-photos.html +++ b/frontend/src/ketr-photos/ketr-photos.html @@ -800,6 +800,9 @@ var path = this.path || "", mode = this.mode; if (mode != "albums") { path = "/" + mode; + if (mode == "time") { + path = ""; + } } console.log("Requesting " + this.limit + " photos."); window.fetch("api/v1/photos" + path + query, function(path, error, xhr) { diff --git a/server/routes/photos.js b/server/routes/photos.js index aa53aeb..e8a304f 100755 --- a/server/routes/photos.js +++ b/server/routes/photos.js @@ -54,7 +54,7 @@ router.get("/memories", function(req, res/*, next*/) { let query = "SELECT * FROM photos WHERE strftime('%m%d',taken)=strftime('%m%d',CURRENT_TIMESTAMP) " + index + " ORDER BY taken DESC,id DESC LIMIT " + (limit * 2 + 1); - console.log("Memories query", query); +// console.log("Memories query", query); return photoDB.sequelize.query(query, { replacements: {