TournamentsOffline command returns:
Error: Tournament is not currently playing
However even though it is not playing I cannot modify through the API
But because the tournament is online, trying to change things with TournamentsEdit results in:
Error: Tournament is online
The ring game on and offline work correctly.
API - TournamentsOffline
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: API - TournamentsOffline
What was the status column (in the client or in the server gui) showing for that tournament when the API call was made? Did you use the "Now" parameter in the call?
Re: API - TournamentsOffline
Status Column showed Registered 0 of 2, and 0 of 8 for the two games I tried it on. I was only testing, so there was nobody actually playing. I did not use the Now parameter. When using the now Parameter it does take the game offline as I would expect. If this is the desired method when using the API, I can adjust my code without a fix.
-
- Site Admin
- Posts: 5880
- Joined: Wed Mar 19, 2008 8:47 pm
Re: API - TournamentsOffline
Yes, from the API docs:Sara wrote:If this is the desired method when using the API, I can adjust my code without a fix.
"Set an optional Now parameter to "Yes" to close the tournament immediately. Otherwise, the tournament will close after it finishes."