|
Yep, the comma is the problem.
When I parse a field, I first turn all the commas into semi-colons. So, that comma becomes a semi colon, so his record will have an extra field.
I can't think of a way around it, but I will look at it and see.
I am assuming the comma is in the actual name of the player, as part of their last name. What database did you use?
Just remove the comma from the name in the game, or after you do the dump, remove the comma from the name in the players.csv file.
I have done many historical seasons and never came across that, so I am assuming that since I use the Lahman database, you muse be using another that has added the comma. Whoever created the database needs to change that, as you cannot have a comma or a semi-colon in a field, as either one of those can be used as CSV dump delimiters. Markus originally had a comma in the nickname field when a player went by more than 1 nickname. When I TT'd it, he just eliminated the 2nd nickname instead of changing it to a dash, like I suggested.
For me to change my code to look for a jr. would be too much work, as every program that accessed that file would have to be changed, then it would also have to check for other names:
, jr.
, sr.
, stupid,
,M.D.
Be easier to REMOVE THE DAMN COMMA!
__________________
Like BLUES? Visit www.smokestacklightnin.com, you will LOVE it!  New show every Monday!! New Blues HOF![/COLOR][/FONT]
|