Skip to content

Commit

Permalink
Undefined result instead of loss by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Drarig29 committed Mar 29, 2021
1 parent a4fcf6b commit dbabf6c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 21 deletions.
33 changes: 13 additions & 20 deletions db.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,12 +66,12 @@
"round_id": 0,
"number": 2,
"child_count": 0,
"status": 3,
"status": 4,
"opponent1": {
"id": 2,
"score": 16,
"forfeit": false,
"result": "loss"
"result": "win"
},
"opponent2": {
"id": 3,
Expand Down Expand Up @@ -265,8 +265,7 @@
"opponent2": {
"id": 6,
"score": 8,
"forfeit": true,
"result": "loss"
"forfeit": true
}
},
{
Expand Down Expand Up @@ -423,12 +422,12 @@
"round_id": 9,
"number": 1,
"child_count": 0,
"status": 3,
"status": 4,
"opponent1": {
"id": 12,
"score": 16,
"forfeit": false,
"result": "loss"
"result": "win"
},
"opponent2": {
"id": 13,
Expand Down Expand Up @@ -822,12 +821,12 @@
"round_id": 18,
"number": 2,
"child_count": 0,
"status": 3,
"status": 4,
"opponent1": {
"id": 26,
"score": 16,
"forfeit": false,
"result": "loss"
"result": "win"
},
"opponent2": {
"id": 27,
Expand Down Expand Up @@ -1833,8 +1832,7 @@
"status": 4,
"opponent1": {
"id": 19,
"forfeit": true,
"result": "loss"
"forfeit": true
},
"opponent2": {
"id": 13,
Expand Down Expand Up @@ -1936,8 +1934,7 @@
"status": 4,
"opponent1": {
"id": 3,
"forfeit": true,
"result": "loss"
"forfeit": true
},
"opponent2": {
"id": 15,
Expand Down Expand Up @@ -1997,8 +1994,7 @@
"status": 4,
"opponent1": {
"id": 19,
"forfeit": true,
"result": "loss"
"forfeit": true
},
"opponent2": {
"id": 21,
Expand Down Expand Up @@ -2042,8 +2038,7 @@
},
"opponent2": {
"id": 17,
"forfeit": true,
"result": "loss"
"forfeit": true
}
},
{
Expand Down Expand Up @@ -2161,8 +2156,7 @@
"status": 4,
"opponent1": {
"id": 21,
"forfeit": true,
"result": "loss"
"forfeit": true
},
"opponent2": {
"id": 1,
Expand Down Expand Up @@ -2222,8 +2216,7 @@
"status": 4,
"opponent1": {
"id": 3,
"forfeit": true,
"result": "loss"
"forfeit": true
},
"opponent2": {
"id": 7,
Expand Down
2 changes: 1 addition & 1 deletion src/convert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export function convertParticipantResult(id: number | null, result: toornament.O
id,
score: result.score !== null ? result.score : undefined,
forfeit: result.forfeit,
result: result.result || 'loss',
result: result.result || undefined,
}
}

Expand Down

0 comments on commit dbabf6c

Please sign in to comment.