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.
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?
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.