fix broken challenges and attempt to make streak more lenient.

This commit is contained in:
Quincy Larson
2015-06-29 16:32:49 -07:00
parent cf167b3c11
commit d9fe6dcef1
2 changed files with 4 additions and 3 deletions

View File

@ -342,8 +342,9 @@
] ]
}, },
{ {
"_id": "bd7126d8c431eddfaeb5bd3e", "id": "bd7126d8c431eddfaeb5bd3e",
"name": "Waypoint: Add Free Code Camp to your LinkedIn Profile", "name": "Waypoint: Add Free Code Camp to your LinkedIn Profile",
"dashedName": "waypoint-add-free-code-camp-to-your-linkedin-profile",
"difficulty": 0.008, "difficulty": 0.008,
"challengeSeed": ["131574134"], "challengeSeed": ["131574134"],
"description": [ "description": [
@ -372,7 +373,6 @@
"descriptionPt": [] "descriptionPt": []
}, },
{ {
"_id": "bd7137d8c441eddfaeb5bdef",
"id": "bd7137d8c441eddfaeb5bdef", "id": "bd7137d8c441eddfaeb5bdef",
"name": "Waypoint: Get Help the Hacker Way with RSAP", "name": "Waypoint: Get Help the Hacker Way with RSAP",
"dashedName": "waypoint-get-help-the-hacker-way-with-rsap", "dashedName": "waypoint-get-help-the-hacker-way-with-rsap",

View File

@ -165,6 +165,7 @@ module.exports = function(app) {
if ( if (
moment(today).toString() === moment(timeKeys[0]).toString() || moment(today).toString() === moment(timeKeys[0]).toString() ||
moment(today).subtract(1, 'd').toString() === moment(today).subtract(1, 'd').toString() ===
moment(timeKeys[0]).toString() || moment(today).subtract(2, 'd').toString() ===
moment(timeKeys[0]).toString() moment(timeKeys[0]).toString()
) { ) {
for (var _i = 1; _i <= timeKeys.length; _i++) { for (var _i = 1; _i <= timeKeys.length; _i++) {