From c2a4e62131603bada1c3714e9f8b641b8f6597b6 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Sat, 9 Dec 2023 12:21:37 +0800 Subject: [PATCH] commit_log_to_db.rake trustie all --- lib/tasks/commit_log_to_db.rake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tasks/commit_log_to_db.rake b/lib/tasks/commit_log_to_db.rake index 1772c4dec..9f445aa18 100644 --- a/lib/tasks/commit_log_to_db.rake +++ b/lib/tasks/commit_log_to_db.rake @@ -10,7 +10,8 @@ namespace :commit_log_to_db do # if ENV['project_name'] == "mindspore" # projects = Project.where(identifier: ['MindSpore-first-experience', ' MindSpore-install', 'MindSpore-Application-practice', 'MindSpore-Model-Development', 'MindSpore-Data-preprocessing', 'Mindspore-Data-storage-use', 'MindSpore-Data-storage-kunpeng', 'MindSpore-LeNet-jzx3', 'MindSpore-competition'] ) # end - projects = Project.where(id: [5533,2,5971,299,1707,4418,1673,290,17,29,907,956,162,950]) + # projects = Project.where(id: [5533,2,5971,299,1707,4418,1673,290,17,29,907,956,162,950]) + projects = Project.where("id < 6200").where("id not in(5533,2,5971,299,1707,4418,1673,290,17,29,907,956,162,950)").where("project_type !=2") projects.each_with_index do |project, index| result = Gitea::Repository::Commits::ListService.call(project.owner.login,project.identifier,sha: "", page: 1, limit: 200, token: project.owner.gitea_token) next if result.blank? || result[:total_count].blank?