gugi9000 / foosball

A ratings tracker for the office foosball league
MIT License
1 stars 0 forks source link

/ratings crashes when there are no games in current period #58

Closed gugi9000 closed 5 years ago

gugi9000 commented 6 years ago

GET /ratings text/html: => Matched: GET /ratings thread '<unnamed>' panicked at 'calledResult::unwrap()on anErrvalue: InvalidColumnType(2, Null)', libcore/result.rs:945:5 note: Run withRUST_BACKTRACE=1for a backtrace. GET / text/html: => Matched: GET / thread '<unnamed>' panicked at 'calledResult::unwrap()on anErrvalue: "PoisonError { inner: .. }"', libcore/result.rs:945:5

gugi9000 commented 5 years ago

if no games in current period the controller should return a mock set of data instead of .. whatever it does..

gugi9000 commented 5 years ago

ratingsdev::developmenttsv() is fixed, but not ratings::ratings()