Remove sort so site will update when API order changes
This commit is contained in:
parent
77b2aab75a
commit
bdea23eaac
@ -398,37 +398,31 @@ export default {
|
||||
return this.battingStats.filter(bs => bs.game !== 'TOT'
|
||||
&& bs.game.game_num === this.gameNumber
|
||||
&& bs.team.abbrev === this.homeTeamAbbreviation)
|
||||
.sort((a, b) => b.pa - a.pa)
|
||||
},
|
||||
homeTeamPitchingStats(): PitchingStat[] {
|
||||
return this.pitchingStats.filter(ps => ps.game !== 'TOT'
|
||||
&& ps.game.game_num === this.gameNumber
|
||||
&& ps.team.abbrev === this.homeTeamAbbreviation)
|
||||
.sort((a, b) => b.outs - a.outs)
|
||||
},
|
||||
homeTeamFieldingStats(): FieldingStat[] {
|
||||
return this.fieldingStats.filter(fs => fs.game !== 'TOT'
|
||||
&& fs.game.game_num === this.gameNumber
|
||||
&& fs.team.abbrev === this.homeTeamAbbreviation)
|
||||
.sort((a, b) => b.xCheckCount - a.xCheckCount)
|
||||
},
|
||||
awayTeamBattingStats(): BattingStat[] {
|
||||
return this.battingStats.filter(bs => bs.game !== 'TOT'
|
||||
&& bs.game.game_num === this.gameNumber
|
||||
&& bs.team.abbrev === this.awayTeamAbbreviation)
|
||||
.sort((a, b) => b.pa - a.pa)
|
||||
},
|
||||
awayTeamPitchingStats(): PitchingStat[] {
|
||||
return this.pitchingStats.filter(ps => ps.game !== 'TOT'
|
||||
&& ps.game.game_num === this.gameNumber
|
||||
&& ps.team.abbrev === this.awayTeamAbbreviation)
|
||||
.sort((a, b) => b.outs - a.outs)
|
||||
},
|
||||
awayTeamFieldingStats(): FieldingStat[] {
|
||||
return this.fieldingStats.filter(fs => fs.game !== 'TOT'
|
||||
&& fs.game.game_num === this.gameNumber
|
||||
&& fs.team.abbrev === this.awayTeamAbbreviation)
|
||||
.sort((a, b) => b.xCheckCount - a.xCheckCount)
|
||||
},
|
||||
sheetsUrl(): string | undefined {
|
||||
return this.game?.scorecard_url
|
||||
|
||||
Loading…
Reference in New Issue
Block a user