API - TournamentsOffline

Report bugs found in Poker Mavens

API - TournamentsOffline

Postby Sara » Wed Jul 05, 2017 9:33 am

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

Re: API - TournamentsOffline

Postby Kent Briggs » Wed Jul 05, 2017 10:04 am

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?
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3944
Joined: Wed Mar 19, 2008 8:47 pm

Re: API - TournamentsOffline

Postby Sara » Wed Jul 05, 2017 12:41 pm

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

Re: API - TournamentsOffline

Postby Kent Briggs » Wed Jul 05, 2017 12:48 pm

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."
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3944
Joined: Wed Mar 19, 2008 8:47 pm


Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron