本網站在啟用 JavaScript 的情況下可以運作的更好。
首頁
探索
說明
登入
adrianshort
/
suttonelections
镜像来自
https://github.com/adrianshort/suttonelections.git
關注
1
收藏
0
複製
0
程式碼
問題
0
版本發佈
2
Wiki
活動
瀏覽代碼
Create a DeletedCandidate for the merged candidate
tags/last-sinatra-version
Adrian Short
9 年之前
父節點
28e03c45af
當前提交
c604d30929
共有
1 個檔案被更改
,包括
1 行新增
和
0 行删除
分割檢視
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-0
scripts/merge-candidates.rb
+ 1
- 0
scripts/merge-candidates.rb
查看文件
@@ -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…
取消
儲存