Fix GitLab importer. Hide already imported projects

This commit is contained in:
Valery Sizov 2015-02-25 12:18:15 +02:00
parent a30a56634d
commit 9c6f048795
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class Import::GitlabController < Import::BaseController
@already_added_projects = current_user.created_projects.where(import_type: "gitlab")
already_added_projects_names = @already_added_projects.pluck(:import_source)
@repos.to_a.reject!{ |repo| already_added_projects_names.include? repo["path_with_namespace"] }
@repos = @repos.to_a.reject{ |repo| already_added_projects_names.include? repo["path_with_namespace"] }
end
def jobs