dckc / pada1

still in stealth mode...
1 stars 0 forks source link

Check marks in Challonge are not compatible with their relevant columns in postgres. #6

Open ghost opened 10 years ago

ghost commented 10 years ago

In challonge, an alternative option to showing game counts (2-0, 2-1, etc) is to simply place a check mark next to the winner's name and leave the corresponding field next to the loser's name blank. These values (or lack thereof) are placed in columns meant for integers, halting the data import. The temporary fix has been to make up numbers (as the set counts, along with all other data, are still accurate).

ghost commented 10 years ago

Games counts now show up at 0-0 when check marks are present. I'm leaving this open for now because I might return to this later and come up with a different method of handling this situation.

dckc commented 10 years ago

The usual way to indicate data that might or might not be there in the scala type system is Option. It's like a nullable column in SQL.

But I guess we're not currently using the scala type system to structure the data, so I'm not sure this is relevant just now.