API - TournamentsOffline

Report bugs found in Poker Mavens
Post Reply
Sara
Posts: 5
Joined: Fri Oct 07, 2016 7:00 am

API - TournamentsOffline

Post 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.
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: API - TournamentsOffline

Post 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?
Sara
Posts: 5
Joined: Fri Oct 07, 2016 7:00 am

Re: API - TournamentsOffline

Post 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.
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: API - TournamentsOffline

Post 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."
Post Reply