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

Commit eb174ae

Browse files
committed
Merge pull request #139 from cloudspokes/james-remove-copilot-stats
removed copilot stats from member development stats
2 parents c82d0f2 + dd6838f commit eb174ae

File tree

1 file changed

+0
-26
lines changed

1 file changed

+0
-26
lines changed

actions/memberStatistics.js

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -438,9 +438,6 @@ exports.getSoftwareStatistics = {
438438
},
439439
rating: function (cbx) {
440440
execQuery('get_software_member_statistics_track_rating', cbx);
441-
},
442-
copilotStats: function (cbx) {
443-
execQuery("get_software_member_statistics_copilot", cbx);
444441
}
445442
}, cb);
446443
}, function (results, cb) {
@@ -503,29 +500,6 @@ exports.getSoftwareStatistics = {
503500
}
504501
});
505502

506-
results.copilotStats.forEach(function (track) {
507-
if (helper.checkNumber(track.reviewer_rating) && track.completed_contests === 0) {
508-
return;
509-
}
510-
if (!result.Tracks[track.category_name]) {
511-
result.Tracks[track.category_name] = {};
512-
}
513-
var data = result.Tracks[track.category_name], copilotFulfillment;
514-
if (data) {
515-
if (!helper.checkNumber(track.reviewer_rating)) {
516-
data.reviewerRating = track.reviewer_rating;
517-
}
518-
if (track.completed_contests !== 0) {
519-
data.copilotCompletedContests = track.completed_contests;
520-
data.copilotRepostedContests = track.reposted_contests;
521-
data.copilotFailedContests = track.failed_contests;
522-
copilotFulfillment = 1 - data.copilotFailedContests / data.copilotCompletedContests;
523-
data.copilotFulfillment = _.getPercent(copilotFulfillment, 0);
524-
}
525-
} else {
526-
api.log("unable to update copilot data. no track data for handle " + handle + " for track " + track, "warning");
527-
}
528-
});
529503
cb();
530504
}
531505
], function (err) {

0 commit comments

Comments
 (0)