Fix 'time' for now, and removed a console.log

Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
James Ketr 2018-09-12 01:54:31 -07:00
parent 517ea8f66e
commit cfc81a56f1
2 changed files with 4 additions and 1 deletions

View File

@ -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) {

View File

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