Closed sumnerevans closed 6 years ago
The old JSON endpoint has been moved to
/s/#/results_json
Use /s/#/results.json
. TurboGears allows you to expose the same controller method to a JSON view as well. See the TG documentation for more info.
Also, not sure how to display this, but counts of things that can be counted would be cool. (feature request, not necessary for merging)
Also, not sure how to display this, but counts of things that can be counted would be cool. (feature request, not necessary for merging)
I like that idea. Go ahead and create an issue for that so it doesn't get lost.
@jackrosenthal , added #41 with your feature request.
@jackrosenthal , also this was assigned to you to do SQLAlchemy magic to avoid sorting and such Python-side.
I won't have time to look at converting your code to sort SQL server side for a few weeks, so if you're hard pressed to get this into master, go ahead and merge and add an issue for changing the implementation to be more efficent.
@jackrosenthal , no problem. This isn't user facing, so I don't see this as urgent. Just wanted a paper trail of why this is assigned to you.
@jackrosenthal , @samsartor , TODOs deferred to #46.
Resolves #18
Features
/s/#/results
endpoint goes to the results table./s/#/results_json
.~.json
to the end of the URL:/s/#/results.json
Here's a picture of what this looks like on my local copy: