Show if Password was Required on Tournament Results

Add your suggestions for improving Poker Mavens
Post Reply
loquacious
Posts: 19
Joined: Mon Feb 24, 2020 10:53 pm

Show if Password was Required on Tournament Results

Post by loquacious »

Would it be possible to add a value showing whether or not a tournament required a password to join when querying the results?

Something as simple as

Code: Select all

PW=********
or

Code: Select all

PasswordRequired=Yes
would be fantastic.

If there's a way to get this information already, I haven't found it.

Thanks!
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Show if Password was Required on Tournament Results

Post by Kent Briggs »

For what purpose? Don't you already know which tournaments had a password on? You could include a flag in the tournament title (e.g., "Saturday Night Tourney [pw]", etc.). If you're retrieving the results via the API, you could also call TournamentsGet and see if that field is set.
loquacious
Posts: 19
Joined: Mon Feb 24, 2020 10:53 pm

Re: Show if Password was Required on Tournament Results

Post by loquacious »

I was doing the flag in the title for now. We offer leaderboards that update after each tournament but don't want private tournaments to count.

The TournamentsGet suggestion would work, as long as nobody somehow manages to modify a just-ended tournament to add or remove a password before the site can query the API? Is that even possible?

Thanks for the suggestion!
Kent Briggs
Site Admin
Posts: 5878
Joined: Wed Mar 19, 2008 8:47 pm

Re: Show if Password was Required on Tournament Results

Post by Kent Briggs »

loquacious wrote:The TournamentsGet suggestion would work, as long as nobody somehow manages to modify a just-ended tournament to add or remove a password before the site can query the API? Is that even possible?
How many people have admin rights on your site? They would have to take the tournament offline to edit a setting in it.
loquacious
Posts: 19
Joined: Mon Feb 24, 2020 10:53 pm

Re: Show if Password was Required on Tournament Results

Post by loquacious »

I forgot about that. Thanks.
Post Reply