-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Paused challenges #402
Comments
@harikmenon how can I get the pause status in the response of server? All I can see in the |
@lidavidm any suggestions here? |
We don't explicitly return it in the API, but you can check the compilation status of the participants' bots (or whether they even have uploaded a bot yet). If any bot does not exist or the compilation status is not Successful, then the challenge is paused.
|
Thanks @lidavidm ! @toannguyen132 let us know if this makes sense. cc @benwong0 |
@lidavidm so I need to fetch all the participants' information in each challenge in the list to get the compilation status in order to display? |
@toannguyen132 Yes, all the bots of all the participants, if the challenge is not completed. If that's too many requests, then let's just add it to the API. |
@lidavidm I have updated the paused status. But I do not know any user those don't have any bot or failed compilation to test. I tried to fail my bot by uploading the wrong bot but it still shows my bot status 'successful'. I think it uses my previous version. |
@toannguyen132 I just updated my bot to fail (user 1000), does that help? |
Sometimes players on the leaderboard can't play in a challenge. E.g. opponents with currently disabled bots (due to compilation) won't have a bot to play.
E.g.
![image](https://user-images.githubusercontent.com/764613/34448195-310a8906-ecb9-11e7-9e38-9e1e2170d571.png)
The text was updated successfully, but these errors were encountered: