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

Fix jslint error and remove checkSubmissionEndDate from challenges API w... #166

Merged
merged 1 commit into from
Apr 1, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions actions/challenges.js
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,9 @@ function transferResult(src, helper) {
if (row.final_fix_end_date) {
challenge.finalFixEndDate = formatDate(row.final_fix_end_date);
}
if (!_.isDefined(row.checkpoint_submission_end_date)) {
delete challenge.checkpointSubmissionEndDate;
}

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

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