Skip to content

Commit

Permalink
Merge pull request #234 from bruin-tennis-consulting/229-urgent-fix-c…
Browse files Browse the repository at this point in the history
…sv-output-order

Changes to output of csv
  • Loading branch information
SaiKarthik-M6 authored Nov 8, 2024
2 parents 5824e65 + 84270f9 commit 71420f9
Show file tree
Hide file tree
Showing 4 changed files with 528 additions and 76 deletions.
16 changes: 16 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}"

}
]
}
2 changes: 2 additions & 0 deletions app/(interactive)/matches/[slug]/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ import extractSetScores from '@/app/services/extractSetScores'
import ExtendedList from '../../../components/ExtendedList'
import nameMap from '@/app/services/nameMap'

console.log(match)

const MatchPage = () => {
const [matchData, setMatchData] = useState()
const [filterList, setFilterList] = useState([])
Expand Down
119 changes: 59 additions & 60 deletions app/services/taggerButtonData.js
Original file line number Diff line number Diff line change
Expand Up @@ -1376,63 +1376,62 @@ export const getTaggerButtonData = (
]
})

export const columnNames = [
'pointScore',
'gameScore',
'setScore',
'isPointStart',
'pointStartTime',
'isPointEnd',
'pointEndTime',
'pointNumber',
'isBreakPoint',
'shotInRally',
'side',
'serverName',
'serverFarNear',
'firstServeIn',
'firstServeZone',
'firstServeXCoord',
'firstServeYCoord',
'secondServeIn',
'secondServeZone',
'secondServeXCoord',
'secondServeYCoord',
'isAce',
'isLet',
'shotContactX',
'shotContactY',
'shotDirection',
'shotFhBh',
'isSlice',
'isVolley',
'isOverhead',
'isApproach',
'isDropshot',
'isExcitingPoint',
'atNetPlayer1',
'atNetPlayer2',
'isLob',
'shotLocationX',
'shotLocationY',
'isWinner',
'isErrorWideR',
'isErrorWideL',
'isErrorNet',
'isErrorLong',
'clientTeam',
'Date',
'Division',
'Event',
'lineupPosition',
'matchDetails',
'matchVenue',
'opponentTeam',
'player1Name',
'player2Name',
'player1Hand',
'player2Hand',
'Round',
'Surface',
'Notes'
]
export const columnNames = [ //changed to desired order
'pointScore',
'gameScore',
'setScore',
'isPointStart',
'pointStartTime',
'isPointEnd',
'pointEndTime',
'pointNumber',
'isBreakPoint',
'shotInRally',
'side',
'serverName',
'serverFarNear',
'firstServeIn',
'firstServeZone',
'firstServeXCoord',
'firstServeYCoord',
'secondServeIn',
'secondServeZone',
'secondServeXCoord',
'secondServeYCoord',
'isAce',
'shotContactX',
'shotContactY',
'shotDirection',
'shotFhBh',
'isSlice',
'isVolley',
'isOverhead',
'isApproach',
'isDropshot',
'isExcitingPoint',
'atNetPlayer1',
'atNetPlayer2',
'isLob',
'shotLocationX',
'shotLocationY',
'isWinner',
'isErrorWideR',
'isErrorWideL',
'isErrorNet',
'isErrorLong',
'clientTeam',
'Date',
'Division',
'Event',
'lineupPosition',
'matchDetails',
'matchVenue',
'opponentTeam',
'player1Name',
'player2Name',
'player1Hand',
'player2Hand',
'Round',
'Surface',
'Notes'
]
Loading

0 comments on commit 71420f9

Please sign in to comment.