This website works better with JavaScript.
首頁
探索
說明
登入
adrianshort
/
suttonelections
镜像来自
https://github.com/adrianshort/suttonelections.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
2
Wiki
Activity
瀏覽代碼
Fixed SQL error
tags/last-sinatra-version
Adrian Short
14 年之前
父節點
f0bd3f36b4
當前提交
d650b70ba3
共有
1 個文件被更改
,包括
6 次插入
和
1 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+6
-1
app.rb
+ 6
- 1
app.rb
查看文件
@@ -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…
取消
儲存