File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -235,18 +235,20 @@ const match = (expected, answered) => {
235235 let above = 0 ;
236236 let upgrade = 0 ;
237237 const entries = Object . entries ( needed ) ;
238+ const propose = [ ] ;
238239 for ( const [ skill , level ] of entries ) {
239240 if ( level ) count ++ ;
240241 const actual = answered . skills . get ( skill ) || '🤷 unknown' ;
241242 const actualIndex = LEVEL_LABELS . indexOf ( actual ) ;
242243 const levelIndex = LEVEL_LABELS . indexOf ( level || '🤷 unknown' ) ;
243244 if ( actualIndex < levelIndex ) {
244245 upgrade ++ ;
245- todo . push ( ` - ${ skill } : ${ actual } ⟶ ${ level } ` ) ;
246+ propose . push ( ` - ${ skill } : ${ actual } ⟶ ${ level } ` ) ;
246247 }
247248 if ( actualIndex > levelIndex ) above ++ ;
248249 if ( actualIndex >= levelIndex && levelIndex !== 0 ) have ++ ;
249250 }
251+ if ( have ) todo . push ( ...propose ) ;
250252 const total = `you have \`${ have } \` of \`${ count } \` skills` ;
251253 const ext = `\`${ upgrade } \` to be upgraded, and \`${ above } \` above needed` ;
252254 todo . push ( ` - Total: ${ total } , ${ ext } ` ) ;
@@ -287,7 +289,7 @@ const getTotal = (answered) => {
287289 const answered = skills [ unit ] ;
288290 if ( expected ) {
289291 const todo = match ( expected , answered ) ;
290- todos . push ( `\n## ${ unit } \n` ) ;
292+ todos . push ( `\n## [ ${ unit } ](Skills/ ${ unit } .md) \n` ) ;
291293 todos . push ( ...todo ) ;
292294 }
293295 totals . push ( `- ${ unit } ` ) ;
You can’t perform that action at this time.
0 commit comments