@@ -438,9 +438,6 @@ exports.getSoftwareStatistics = {
438
438
} ,
439
439
rating : function ( cbx ) {
440
440
execQuery ( 'get_software_member_statistics_track_rating' , cbx ) ;
441
- } ,
442
- copilotStats : function ( cbx ) {
443
- execQuery ( "get_software_member_statistics_copilot" , cbx ) ;
444
441
}
445
442
} , cb ) ;
446
443
} , function ( results , cb ) {
@@ -503,29 +500,6 @@ exports.getSoftwareStatistics = {
503
500
}
504
501
} ) ;
505
502
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
- } ) ;
529
503
cb ( ) ;
530
504
}
531
505
] , function ( err ) {
0 commit comments