Update challenges to remove SQL challenges. Make minor improvements to challenges.son

This commit is contained in:
Michael Q Larson
2014-12-30 22:02:19 -08:00
parent a8d08b1ff9
commit 1dda38eaaa
6 changed files with 45 additions and 117 deletions

View File

@@ -33,7 +33,7 @@ exports.returnChallenge = function(req, res, next) {
"Establish your alibi for the past two hours",
"Prove to mom that computers aren't just for games"
];
if (challengeNumber > 59) { challengeNumber = 0; }
if (challengeNumber > 53) { challengeNumber = 0; }
Challenge.find({}, null, { sort: { challengeNumber: 1 } }, function(err, c) {
if (err) {
debug('Challenge err: ', err);