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', {
title: 'Manage your Free Code Camp Account',
cc: c,
ch: req.user.challengesHash,
c: c,
cc: req.user.challengesHash,
moment: moment
});
});

View File

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