File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -83,17 +83,30 @@ cmd.handler = function(argv) {
8383 if ( e ) return log . fail ( e ) ;
8484
8585 var stats = { } ;
86+ var statsNoLock = { } ;
87+
8688 problems . forEach ( function ( problem ) {
8789 var keyAll = 'all' + problem . level ;
8890 var keyAC = problem . state + problem . level ;
8991 stats [ keyAll ] = ( stats [ keyAll ] || 0 ) + 1 ;
9092 stats [ keyAC ] = ( stats [ keyAC ] || 0 ) + 1 ;
93+
94+ if ( ! problem . locked ) {
95+ statsNoLock [ keyAll ] = ( statsNoLock [ keyAll ] || 0 ) + 1 ;
96+ statsNoLock [ keyAC ] = ( statsNoLock [ keyAC ] || 0 ) + 1 ;
97+ }
9198 } ) ;
9299
93100 log . info ( ) ;
94101 log . info ( prettyLine ( 'Easy' , stats . acEasy , stats . allEasy ) ) ;
95102 log . info ( prettyLine ( 'Medium' , stats . acMedium , stats . allMedium ) ) ;
96103 log . info ( prettyLine ( 'Hard' , stats . acHard , stats . allHard ) ) ;
104+
105+ log . info ( ) ;
106+ log . info ( 'Without Locked:' ) ;
107+ log . info ( prettyLine ( 'Easy' , statsNoLock . acEasy , statsNoLock . allEasy ) ) ;
108+ log . info ( prettyLine ( 'Medium' , statsNoLock . acMedium , statsNoLock . allMedium ) ) ;
109+ log . info ( prettyLine ( 'Hard' , statsNoLock . acHard , statsNoLock . allHard ) ) ;
97110 } ) ;
98111 }
99112 }
You can’t perform that action at this time.
0 commit comments