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: {