Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
noahsw authored Aug 8, 2016
1 parent 7052afa commit 5679cfb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/imports/api/games/server/mlb_game_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,23 @@ function padZeros(n, width) {
function cleanStatus(status) {
// 'scheduled', 'in progress', 'completed', 'postponed', 'suspended', 'cancelled'],
switch (status) {
case '':
case 'Preview':
case 'Warmup':
case 'Delayed':
case 'Delayed Start':
case 'Pre-Game': // not sure how any of these are different
return 'scheduled';
case 'In Progress':
case 'Review':
case 'Manager Challenge':
return 'in progress';
case 'Final':
case 'Game Over':
return 'completed'; // not sure how any of these are different
case 'Postponed':
return 'postponed';
case 'Suspended':
case 'Completed Early':
return 'suspended';
default:
Expand Down

0 comments on commit 5679cfb

Please sign in to comment.