This website works better with JavaScript.
首頁
探索
說明
登入
adrianshort
/
suttonelections
镜像来自
https://github.com/adrianshort/suttonelections.git
關註
1
收藏
0
複製
0
程式碼
問題管理
0
版本發佈
2
Wiki
Activity
瀏覽代碼
Drop sex from candidates
tags/last-sinatra-version
Adrian Short
10 年之前
父節點
1b9b16907a
當前提交
611cdbb1a0
共有
2 個文件被更改
,包括
2 次插入
和
3 次删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
models.rb
+1
-1
scripts/merge-candidates.rb
+ 1
- 2
models.rb
查看文件
@@ -90,8 +90,7 @@ class Candidate
property :id, Serial
property :forenames, String, :required => true
property :surname, String, :required => true, :index => true
property :sex, String
has n, :candidacies
def short_name
+ 1
- 1
scripts/merge-candidates.rb
查看文件
@@ -5,7 +5,7 @@ def show_candidate(id)
template = "%6s\t%50s\t%20s\t%3s"
puts template % [ c.id, c.forenames, c.surname
, c.sex
]
puts template % [ c.id, c.forenames, c.surname ]
ccy_template = "%20s\t%15s\t%20s\t%20s"
c.candidacies.each do |ccy|
Write
Preview
Loading…
取消
儲存