This website works better with JavaScript.
Home
Explore
Help
Sign In
adrianshort
/
suttonelections
mirror of
https://github.com/adrianshort/suttonelections.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
2
Wiki
Activity
Browse Source
Fixed SQL error
tags/last-sinatra-version
Adrian Short
14 years ago
parent
f0bd3f36b4
commit
d650b70ba3
1 changed files
with
6 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-1
app.rb
+ 6
- 1
app.rb
View File
@@ -34,10 +34,15 @@ get '/' do
WHERE p.id = c.party_id
GROUP BY p.
id
GROUP BY p.
name
ORDER BY votes desc
;")
select p.name, count(c.*) AS seats
FROM parties p, councilcandidates c
GROUP BY p.id
@total_votes = Councilcandidate.sum(:votes_2010)
Write
Preview
Loading…
Cancel
Save