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

Commit 4e1079c

Browse files
authored
Merge pull request #126 from topcoder-platform/multiround
Multiround - sync
2 parents 129e3c1 + edd1b3b commit 4e1079c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

src/constants.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ const supportedMetadata = {
8282
defaultValue: null,
8383
description: 'Billing Project'
8484
},
85+
31: {
86+
method: metadataExtractor.extractAdminFee,
87+
defaultValue: 0,
88+
description: 'Admin Fee'
89+
},
8590
30: {
8691
method: metadataExtractor.extractDrPoints,
8792
defaultValue: 0,

src/utils/metadataExtractor.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,16 @@ function extractMarkup (challenge, defaultValue) {
2828
return _.toString(_.get(challenge, 'billing.markup', defaultValue))
2929
}
3030

31+
/**
32+
* Extract Admin Fee
33+
* @param {Object} challenge the challenge object
34+
* @param {Any} defaultValue the default value
35+
*/
36+
function extractAdminFee (challenge, defaultValue) {
37+
// TODO for now just return 0
38+
return _.toString(_.get(challenge, 0, defaultValue))
39+
}
40+
3141
/**
3242
* Extract submission limit
3343
* @param {Object} challenge the challenge object
@@ -192,6 +202,7 @@ function extractEstimateEffortOnsite (challenge, defaultValue) {
192202

193203
module.exports = {
194204
extractMarkup,
205+
extractAdminFee,
195206
extractBillingProject,
196207
extractSubmissionLimit,
197208
extractSpecReviewCost,

0 commit comments

Comments
 (0)