Fix 'time' for now, and removed a console.log
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
517ea8f66e
commit
cfc81a56f1
@ -800,6 +800,9 @@
|
|||||||
var path = this.path || "", mode = this.mode;
|
var path = this.path || "", mode = this.mode;
|
||||||
if (mode != "albums") {
|
if (mode != "albums") {
|
||||||
path = "/" + mode;
|
path = "/" + mode;
|
||||||
|
if (mode == "time") {
|
||||||
|
path = "";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
console.log("Requesting " + this.limit + " photos.");
|
console.log("Requesting " + this.limit + " photos.");
|
||||||
window.fetch("api/v1/photos" + path + query, function(path, error, xhr) {
|
window.fetch("api/v1/photos" + path + query, function(path, error, xhr) {
|
||||||
|
@ -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);
|
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, {
|
return photoDB.sequelize.query(query, {
|
||||||
replacements: {
|
replacements: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user