Page 1 of 1

API - TournamentsOffline

Posted: Wed Jul 05, 2017 9:33 am
by Sara
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.

Re: API - TournamentsOffline

Posted: Wed Jul 05, 2017 10:04 am
by Kent Briggs
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

Posted: Wed Jul 05, 2017 12:41 pm
by Sara
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.

Re: API - TournamentsOffline

Posted: Wed Jul 05, 2017 12:48 pm
by Kent Briggs
Sara wrote:If this is the desired method when using the API, I can adjust my code without a fix.
Yes, from the API docs:

"Set an optional Now parameter to "Yes" to close the tournament immediately. Otherwise, the tournament will close after it finishes."