This commit is contained in:
sylor_huang@126.com
2020-08-12 16:51:24 +08:00
parent 3596ddeee4
commit ae4161fa9b
2 changed files with 3 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ class SyncForgeController < ApplicationController
sync_counts = params[:sync_count] || 10
projects = Project.includes(:project_score, :repository)
.where(is_public: true)
.where.not(identifier: ["educoder","trustieforge", "gitlab"])
.where.not(identifier: ["educoder","trustieforge", "gitlab", "rGDBbQmOK", "socialforge"])
.joins(:project_score).order("project_scores.changeset_num desc").limit(sync_counts.to_i)
projects.each do | project |
SyncProjectMilitaryJob.perform_later(project, project.repository, project.project_score)