@@ -240,24 +240,32 @@ module.exports = {
240
240
const divisionLeadersMap = mapStandings ( divisionLeaders ) ;
241
241
const wildcardMap = mapStandings ( wildcard , true ) ;
242
242
const table = new AsciiTable ( leagueName + ' Wild Card \n' ) ;
243
- table . setHeading ( 'Team' , 'W-L' , 'WCGB' , 'L10' , 'STRK' ) ;
243
+ table . setHeading ( 'Team' , 'W-L' , 'PCT' , 'WCGB' , 'L10' , 'STRK' ) ;
244
+ table . setHeadingAlign ( AsciiTable . CENTER ) ;
245
+ table . setAlign ( 1 , AsciiTable . CENTER ) ;
246
+ table . setAlign ( 2 , AsciiTable . CENTER ) ;
247
+ table . setAlign ( 3 , AsciiTable . CENTER ) ;
248
+ table . setAlign ( 4 , AsciiTable . CENTER ) ;
249
+ table . setAlign ( 5 , AsciiTable . CENTER ) ;
244
250
divisionLeadersMap . forEach ( ( entry ) => table . addRow (
245
251
entry . name ,
246
252
entry . wins + '-' + entry . losses ,
253
+ entry . pct ,
247
254
'-' ,
248
255
entry . lastTen ,
249
256
entry . streak
250
257
) ) ;
251
258
let wildCardDivided = false ;
252
- table . addRow ( '' , '' , '' , '' , '' ) ;
259
+ table . addRow ( '' , '' , '' , '' , '' , '' ) ;
253
260
wildcardMap . forEach ( ( entry ) => {
254
261
if ( ! wildCardDivided && entry . gamesBack !== '-' && ! entry . gamesBack . includes ( '+' ) ) {
255
262
wildCardDivided = true ;
256
- table . addRow ( '' , '' , '' , '' , '' ) ;
263
+ table . addRow ( '' , '' , '' , '' , '' , '' ) ;
257
264
}
258
265
table . addRow (
259
266
entry . name ,
260
267
entry . wins + '-' + entry . losses ,
268
+ entry . pct ,
261
269
entry . gamesBack ,
262
270
entry . lastTen ,
263
271
entry . streak
0 commit comments