this works, but does not work until I restart the server for some reason

This commit is contained in:
Michael Q Larson
2014-12-30 16:26:25 -08:00
parent ca75b1323c
commit 8a9905becf
2 changed files with 7 additions and 7 deletions

View File

@ -141,8 +141,8 @@ exports.getAccount = function(req, res) {
} }
res.render('account/profile', { res.render('account/profile', {
title: 'Manage your Free Code Camp Account', title: 'Manage your Free Code Camp Account',
cc: c, c: c,
ch: req.user.challengesHash, cc: req.user.challengesHash,
moment: moment moment: moment
}); });
}); });

View File

@ -71,7 +71,7 @@ block content
i.fa.fa-twitter i.fa.fa-twitter
| Link Twitter with your account | Link Twitter with your account
br br
- if (ch[0] > 0) - if (cc[0] > 0)
.panel .panel
.container .container
h1 Completed Challenges h1 Completed Challenges
@ -81,11 +81,11 @@ block content
tr tr
th Challenge th Challenge
th Date Finished th Date Finished
for challenge in cc for challenge in c
if ch[challenge.challengeNumber] > 0 if cc[challenge.challengeNumber] > 0
tr tr
td= cc[challenge.challengeNumber].name td= c[challenge.challengeNumber].name
td= moment(ch[challenge.challengeNumber], 'X').format("MMM DD, YYYY") td= moment(cc[challenge.challengeNumber], 'X').format("MMM DD, YYYY")
br br
.panel .panel
.container .container