Clean up console.log

This commit is contained in:
Peter 2024-11-09 12:03:13 -06:00
parent a7e1f4a755
commit d2f4b5e168
2 changed files with 0 additions and 4 deletions

View File

@ -92,9 +92,7 @@ export default {
const pitcherStatsByGame: PitchingStat[] = await fetchPitchingStatsForLastTwoWeeksByTeam(this.seasonNumber, this.weekNumber, 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)
console.log(this.sortedPlayers)
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
sortPitchers(p1: Player, p2: Player): number {

View File

@ -150,9 +150,7 @@ export default {
},
async fetchData(): Promise<void> {
this.weekTransactions = await fetchTransactionsByWeek(this.seasonNumber, this.selectedWeekNumber)
console.log('curr', this.weekTransactions)
this.nextWeekTransactions = await fetchTransactionsByWeek(this.seasonNumber, this.selectedWeekNumber + 1)
console.log('next', this.nextWeekTransactions)
}
}
}