Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit 02a5814

Browse files
committed
Merge pull request #166 from Ghost141/challenges_api_fix
Fix jslint error and remove checkSubmissionEndDate from challenges API w...
2 parents cda9e09 + e967df5 commit 02a5814

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

actions/challenges.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,9 @@ function transferResult(src, helper) {
347347
if (row.final_fix_end_date) {
348348
challenge.finalFixEndDate = formatDate(row.final_fix_end_date);
349349
}
350+
if (!_.isDefined(row.checkpoint_submission_end_date)) {
351+
delete challenge.checkpointSubmissionEndDate;
352+
}
350353

351354
//use xtend to preserve ordering of attributes
352355
challenge = extend(challenge, {
@@ -1029,7 +1032,7 @@ var submitForDevelopChallenge = function (api, connection, dbConnectionMap, next
10291032
fileName: fileName
10301033
});
10311034
api.dataAccess.executeQuery("insert_upload", sqlParams, dbConnectionMap, cb);
1032-
}, function(notUsed, cb) {
1035+
}, function (notUsed, cb) {
10331036
//Now check if the contest is a CloudSpokes one and if it needs to submit the thurgood job
10341037
if (!_.isUndefined(thurgoodPlatform) && !_.isUndefined(thurgoodLanguage) && type === 'final') {
10351038
//Make request to the thurgood job api url
@@ -1247,7 +1250,7 @@ exports.getChallengeTerms = {
12471250
outputExample: {},
12481251
version: 'v2',
12491252
transaction : 'read', // this action is read-only
1250-
cacheEnabled : false,
1253+
cacheEnabled : false,
12511254
databases : ["tcs_catalog", "common_oltp"],
12521255
run: function (api, connection, next) {
12531256
if (connection.dbConnectionMap) {
@@ -1876,7 +1879,7 @@ var SOURCE_DIR = 'source/';
18761879
/**
18771880
* The directory in the unified zip that contains the submission files
18781881
*/
1879-
var SUBMISSION_DIR = 'submission/'
1882+
var SUBMISSION_DIR = 'submission/';
18801883

18811884
/**
18821885
* Generates a unified submission zip for design submissions using the 3 files that submitters submit

0 commit comments

Comments
 (0)