Skip to content

Instantly share code, notes, and snippets.

@Mikodes
Created August 3, 2017 08:33
Show Gist options
  • Save Mikodes/c9dfcc16d6169f311c989fac05af2811 to your computer and use it in GitHub Desktop.
Save Mikodes/c9dfcc16d6169f311c989fac05af2811 to your computer and use it in GitHub Desktop.
{
"name": "5vs5 Configuration 2017 Mike",
"game": "5475f8843207a847e415557c",
"mode": "cl",
"type": {
"num_teams": 2,
"num_players": 5,
"_cls": "SingleMatch"
},
"rounds": [
{
"round": 1,
"matches_num": 2,
"rounds_num": 0,
"round_time": 3,
"c4_time": 0,
"warmup_secs": 300,
"secs_to_validate_match": 300,
"secs_after_disconnection": 300,
"valid_team_players": 1,
"freeze_time": 10,
"play_knife_round": false,
"best_of_n_rounds": true,
"helmet": true,
"restrictions": [],
"map": "54d924733207a8170d7e0f1e"
}
]
}
@chef88val
Copy link

chef88val commented Aug 3, 2017

Esto es lo que envío
{
"name": "fff",
"game": "5968ead666bc5a305aa0ede2",
"mode": "cl",
"type":
{
"num_teams": 2,
"num_players": 1,
"_cls": "SingleMatch"
},
"rounds": [
{
"round": 1,
"matches_num": 1,
"rounds_num": 1,
"round_time": 2,
"c4_time": 0,
"warmup_secs": 0,
"secs_to_validate_match": 0,
"secs_after_disconnection": 0,
"valid_team_players": 2,
"freeze_time": 5,
"play_knife_round": false,
"best_of_n_rounds": false,
"helmet": true,
"restrictions": [
],
"map": "54d924733207a8170d7e0f1e"
}
]
}

Esto es lo que recibo

  • TypeError at /api/administration/configuration/
Exception Value: string indices must be integers
Exception Location: ./core/tournament/configuration/admin.py in create, line 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment