mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-27 18:52:07 +08:00
fix hound
This commit is contained in:
parent
0996745781
commit
5b56f3dbd6
2 changed files with 2 additions and 4 deletions
|
@ -8,7 +8,6 @@
|
|||
# @repository: the repository in which we import the items
|
||||
module RepositoryImportParser
|
||||
class Importer
|
||||
|
||||
def initialize(sheet, mappings, user, repository)
|
||||
@columns = []
|
||||
@name_index = -1
|
||||
|
@ -24,14 +23,14 @@ module RepositoryImportParser
|
|||
end
|
||||
|
||||
def run
|
||||
get_columns
|
||||
fetch_columns
|
||||
return check_for_duplicate_columns if check_for_duplicate_columns
|
||||
import_rows!
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def get_columns
|
||||
def fetch_columns
|
||||
@mappings.each.with_index do |(_, value), index|
|
||||
if value == '-1'
|
||||
# Fill blank space, so our indices stay the same
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
# it to the repository_row
|
||||
module RepositoryImportParser
|
||||
class RepositoryCellValueResolver
|
||||
|
||||
def initialize(column, user, repository)
|
||||
@column = column
|
||||
@user = user
|
||||
|
|
Loading…
Reference in a new issue