From 52eeee31d6df380c8756819042fe66c2b1d09542 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Thu, 23 Mar 2023 17:33:38 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E6=8F=90=E4=BA=A4=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/tasks/total_commit_count.rake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/tasks/total_commit_count.rake b/lib/tasks/total_commit_count.rake index 7c0f8b470..5b7351825 100644 --- a/lib/tasks/total_commit_count.rake +++ b/lib/tasks/total_commit_count.rake @@ -13,6 +13,7 @@ namespace :total_commit_count do projects.each_with_index do |project, index| result = Gitea::Repository::Commits::ListService.call(project.owner.login,project.identifier,sha: "", page: 1, limit: 5, token: project.owner.gitea_token) total_count = result[:total_count] + next if total_count > 2000 puts "#{index} total_count==========#{total_count}" if total_count > 50 total_page = (total_count / 50) + 1 @@ -22,6 +23,7 @@ namespace :total_commit_count do else add_commit_to_index(project, 1) end + puts "#{index} date_count_hash===========#{@date_count_hash.to_json}" end puts "@date_count_hash===========#{@date_count_hash.to_json}"