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

removed copilot stats from member development stats #139

Merged
merged 1 commit into from
Mar 20, 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
26 changes: 0 additions & 26 deletions actions/memberStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,9 +438,6 @@ exports.getSoftwareStatistics = {
},
rating: function (cbx) {
execQuery('get_software_member_statistics_track_rating', cbx);
},
copilotStats: function (cbx) {
execQuery("get_software_member_statistics_copilot", cbx);
}
}, cb);
}, function (results, cb) {
Expand Down Expand Up @@ -503,29 +500,6 @@ exports.getSoftwareStatistics = {
}
});

results.copilotStats.forEach(function (track) {
if (helper.checkNumber(track.reviewer_rating) && track.completed_contests === 0) {
return;
}
if (!result.Tracks[track.category_name]) {
result.Tracks[track.category_name] = {};
}
var data = result.Tracks[track.category_name], copilotFulfillment;
if (data) {
if (!helper.checkNumber(track.reviewer_rating)) {
data.reviewerRating = track.reviewer_rating;
}
if (track.completed_contests !== 0) {
data.copilotCompletedContests = track.completed_contests;
data.copilotRepostedContests = track.reposted_contests;
data.copilotFailedContests = track.failed_contests;
copilotFulfillment = 1 - data.copilotFailedContests / data.copilotCompletedContests;
data.copilotFulfillment = _.getPercent(copilotFulfillment, 0);
}
} else {
api.log("unable to update copilot data. no track data for handle " + handle + " for track " + track, "warning");
}
});
cb();
}
], function (err) {
Expand Down