Remove type-o of double + + in string concat
Signed-off-by: James Ketrenos <james_git@ketrenos.com>
This commit is contained in:
parent
0dbf380286
commit
a6adeccd99
@ -563,7 +563,8 @@ router.get("/holiday/:holiday", function(req, res/*, next*/) {
|
|||||||
startYear = date.year;
|
startYear = date.year;
|
||||||
endYear = date.year;
|
endYear = date.year;
|
||||||
}
|
}
|
||||||
}
|
}'
|
||||||
|
|
||||||
holidayName = date ? req.params.holiday : Object.getOwnPropertyNames(lookup)[0];
|
holidayName = date ? req.params.holiday : Object.getOwnPropertyNames(lookup)[0];
|
||||||
console.log("Searching for holiday: " + holidayName);
|
console.log("Searching for holiday: " + holidayName);
|
||||||
/* Lookup the date for the holiday on every year from 'startYear' (1990) to today */
|
/* Lookup the date for the holiday on every year from 'startYear' (1990) to today */
|
||||||
@ -601,9 +602,7 @@ router.get("/holiday/:holiday", function(req, res/*, next*/) {
|
|||||||
let direction = extraDays < 0 ? -1 : 1;
|
let direction = extraDays < 0 ? -1 : 1;
|
||||||
|
|
||||||
for (let i = 0; i <= Math.abs(extraDays); i++) {
|
for (let i = 0; i <= Math.abs(extraDays); i++) {
|
||||||
let comparison = "strftime('%Y-%m-%d',taken)='"
|
let comparison = "strftime('%Y-%m-%d',taken)='" + holiday.format("YYYY-MM-DD") + "'";
|
||||||
+ holiday.format("YYYY-MM-DD") +
|
|
||||||
+ "'";
|
|
||||||
/* If no holiday has been set yet, start the comparison function passed to WHERE
|
/* If no holiday has been set yet, start the comparison function passed to WHERE
|
||||||
* otherwise append it with OR. */
|
* otherwise append it with OR. */
|
||||||
if (!dayIsHoliday) {
|
if (!dayIsHoliday) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user