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
Create a DeletedCandidate for the merged candidate
tags/last-sinatra-version
Adrian Short
8 years ago
parent
28e03c45af
commit
c604d30929
1 changed files
with
1 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
scripts/merge-candidates.rb
+ 1
- 0
scripts/merge-candidates.rb
View File
@@ -41,6 +41,7 @@ repository(:default).adapter.select("
")
# Delete the loser candidate
DeletedCandidate.create(:old_candidate_id => loser, :candidate_id => winner)
Candidate.get(loser).destroy
puts "Merge completed. Here is the merged candidate:"
Write
Preview
Loading…
Cancel
Save