zacoppotamus / ElgarsCodingOrchestra

2nd Year Software Engineering Project
project.spe.sneeza.me
3 stars 0 forks source link

Fix parser on certain .csv's #131

Closed lukezbihlyj closed 10 years ago

lukezbihlyj commented 10 years ago

Zac's CSV returns the following JSON objects, which are broken:

{
    "Name": "Josh McCown",
    "Team": "CHI",
    "G": 3,
    "QBRat": 68.3,
    "Comp": 35,
    "Att": 55,
    "Pct": 63.6,
    "PassYds": 414,
    "PassYG": 138,
    "YdsAtt": 7.5,
    "TD": 2,
    "Int": 4,
    "Rush": 12,
    "RushYds": 68,
    "RushYG": 22.7,
    "RushAvg": 5.7,
    "RushTD": 0,
    "Sack": 7,
    "SackYds": 43,
    "Fum": 2,
": 0    "FumL
}

Looks like the last row gets output in the wrong order which makes it invalid JSON.

zacoppotamus commented 10 years ago

Here's the csv file: https://www.dropbox.com/s/458c5izajpmnqs1/NFL%202011%20QB.csv

SLTozer commented 10 years ago

Fixed

zacoppotamus commented 10 years ago

Any idea why this won't upload? https://github.com/zacoppotamus/ElgarsCodingOrchestra/blob/master/frontend/visualizations/nysubway/subentrances.csv