Clean up console.log
This commit is contained in:
parent
a7e1f4a755
commit
d2f4b5e168
@ -92,9 +92,7 @@ export default {
|
|||||||
const pitcherStatsByGame: PitchingStat[] = await fetchPitchingStatsForLastTwoWeeksByTeam(this.seasonNumber, this.weekNumber, this.teamId)
|
const pitcherStatsByGame: PitchingStat[] = await fetchPitchingStatsForLastTwoWeeksByTeam(this.seasonNumber, this.weekNumber, this.teamId)
|
||||||
const players: Player[] = await fetchPlayersByTeam(this.seasonNumber, this.teamId)
|
const players: Player[] = await fetchPlayersByTeam(this.seasonNumber, this.teamId)
|
||||||
this.sortedPlayers = players.filter(p => ['SP', 'RP'].includes(p.pos_1)).sort(this.sortPitchers)
|
this.sortedPlayers = players.filter(p => ['SP', 'RP'].includes(p.pos_1)).sort(this.sortPitchers)
|
||||||
console.log(this.sortedPlayers)
|
|
||||||
this.pitcherStatsByNameWeekGame = Object.fromEntries(pitcherStatsByGame.map(stat => [this.recordKeySelector(stat), stat]))
|
this.pitcherStatsByNameWeekGame = Object.fromEntries(pitcherStatsByGame.map(stat => [this.recordKeySelector(stat), stat]))
|
||||||
console.log(this.pitcherStatsByNameWeekGame)
|
|
||||||
},
|
},
|
||||||
//sorts SP above RP and more expensive players up top
|
//sorts SP above RP and more expensive players up top
|
||||||
sortPitchers(p1: Player, p2: Player): number {
|
sortPitchers(p1: Player, p2: Player): number {
|
||||||
|
|||||||
@ -150,9 +150,7 @@ export default {
|
|||||||
},
|
},
|
||||||
async fetchData(): Promise<void> {
|
async fetchData(): Promise<void> {
|
||||||
this.weekTransactions = await fetchTransactionsByWeek(this.seasonNumber, this.selectedWeekNumber)
|
this.weekTransactions = await fetchTransactionsByWeek(this.seasonNumber, this.selectedWeekNumber)
|
||||||
console.log('curr', this.weekTransactions)
|
|
||||||
this.nextWeekTransactions = await fetchTransactionsByWeek(this.seasonNumber, this.selectedWeekNumber + 1)
|
this.nextWeekTransactions = await fetchTransactionsByWeek(this.seasonNumber, this.selectedWeekNumber + 1)
|
||||||
console.log('next', this.nextWeekTransactions)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user