Stevoisiak / Virtual-Game-Shelf

An easy way to organize your entire game collection in a single place.
MIT License
7 stars 0 forks source link

Loading gameList from file fails if 'hours' or 'rating' is NULL #92

Open Stevoisiak opened 7 years ago

Stevoisiak commented 7 years ago

Loading the gameList from a file will fail if the "hours played" or "rating" fields are empty. In theory, this should only happen if the game_list.csv file was manually edited.

The ideal fix would be to store hours and rating as Integer to allow null as a valid value to allow distinctions between "0 hours played" and the field being left empty.

Issue can be recreated by loading the following game_list.csv

"name","system","hours","completion","rating"
"Pong","AcornA","0","Unfinished","0"
"Flappy Bird","Droid","","Null","3"
"Super Mario Bros","NES","0","Completed","0"