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
Drop sex from candidates
tags/last-sinatra-version
Adrian Short
10 years ago
parent
1b9b16907a
commit
611cdbb1a0
2 changed files
with
2 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-2
models.rb
+1
-1
scripts/merge-candidates.rb
+ 1
- 2
models.rb
View File
@@ -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
View File
@@ -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…
Cancel
Save