Skip to content
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

Leaderboard json #147

Merged
merged 4 commits into from
Aug 10, 2013
Merged

Leaderboard json #147

merged 4 commits into from
Aug 10, 2013

Conversation

relrod
Copy link
Member

@relrod relrod commented Aug 10, 2013

This pulls out the code that generated JSON for /user/<id>/json into something that other methods can call, then adds a JSON api that includes that info along with an ordered array of users which forms the leaderboard.

@@ -133,6 +133,8 @@ def get_db(request):
config.add_route('builder', '/builder')
config.add_route('explore', '/explore')
config.add_route('leaderboard', '/leaderboard')
config.add_route('leaderboard_json', '/leaderboard/json')
#config.add_route('rank_json', '/leaderboard/{id}/json')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented out?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(answered in IRC - this endpoint will exist soon, I just wanted to note it here since it's related to this change, so I added it at the same time, but commented it.)

@dtgay
Copy link
Contributor

dtgay commented Aug 10, 2013

This is awesome. :) Thanks!

dtgay added a commit that referenced this pull request Aug 10, 2013
@dtgay dtgay merged commit 31e9d61 into develop Aug 10, 2013
@dtgay dtgay deleted the leaderboard_json branch August 10, 2013 16:41
@puiterwijk
Copy link
Contributor

oh, I'm too late.
Anyway: 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants