|
|
|
@@ -47,6 +47,7 @@ namespace :batch_add_contributors do |
|
|
|
else |
|
|
|
sql = "INSERT INTO commit_contributors (`created_at`, `count`, `name`) VALUES ('#{commit_date_str}',1,'#{commiter['email']}')" |
|
|
|
end |
|
|
|
puts "sql====#{sql}" |
|
|
|
|
|
|
|
sql_connection.execute(sql) |
|
|
|
sql_connection.commit_db_transaction |
|
|
|
@@ -97,6 +98,7 @@ namespace :batch_add_contributors do |
|
|
|
else |
|
|
|
sql = "INSERT INTO commit_contributors (`created_at`, `count`, `name`) VALUES ('#{commit_date_str}',1,'#{commiter['email']}')" |
|
|
|
end |
|
|
|
puts "sql====#{sql}" |
|
|
|
|
|
|
|
sql_connection.execute(sql) |
|
|
|
sql_connection.commit_db_transaction |
|
|
|
|