diff --git a/scripts/workers/config.sh.example b/scripts/workers/config.sh.example index 1b6efe1d3085ef41f6b5fdcfc364e26ee2ef86d4..7576a109ab52b2c4b224805f5cc7c1662b455c9c 100644 --- a/scripts/workers/config.sh.example +++ b/scripts/workers/config.sh.example @@ -8,7 +8,7 @@ index="servidores" # ColumnName: The name of the column from the CSV that we will use to filter data. -columnName="ORGSUP_LOTACAO" +columnName="COD_ORGSUP_EXERCICIO" # Filter: An associative array that will be used to filter data. The key should be the initials, and they will be used to generate the index name. # The value should be the same as in the CSV, since it will be used to match data. diff --git a/scripts/workers/resume_register.sh b/scripts/workers/resume_register.sh index 270c831c86e408b94fa655ded0f7c4665c6ee5f5..d4d99f1df00212f2ec4efc5076ba43fcd4c2ef73 100755 --- a/scripts/workers/resume_register.sh +++ b/scripts/workers/resume_register.sh @@ -16,7 +16,6 @@ output="${path}/${date}_Cadastro_Unique.csv" head -n1 ${input} > $path/header.csv iconv -f WINDOWS-1252 -t UTF-8 -o $path/tmp.csv $path/header.csv columnId=$(sed s/${4}.*$/${4}/ $path/tmp.csv | sed -e 's/\t/\n/g' | wc -l) -columnId=`expr $columnId + 1` rm -f $path/tmp.csv $path/header.csv cmd="\$$columnId == \"${filter}\""