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

Summary JSON API endpoint #9

Open
abkfenris opened this issue Dec 11, 2016 · 0 comments
Open

Summary JSON API endpoint #9

abkfenris opened this issue Dec 11, 2016 · 0 comments

Comments

@abkfenris
Copy link
Owner

Make an API endpoint for a summary of the season.

SELECT ts.dt, ts.open, ts.groomed, ts.snowmaking, trails.difficulty, areas.name, COUNT(*)
FROM 
	trail_status AS ts,
	trails,
	areas
WHERE
	ts.trail_id = trails.id
AND
	areas.id = trails.area_id
GROUP BY ts.dt, ts.open, ts.groomed, ts.snowmaking, trails.difficulty, areas.name
ORDER BY ts.dt DESC, trails.difficulty
abkfenris added a commit that referenced this issue Dec 11, 2016
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

No branches or pull requests

1 participant