Skip to content

Commit

Permalink
Merge pull request #38 from analytics-ufcg/155-busca-de-contratos
Browse files Browse the repository at this point in the history
Adiciona coluna language pra pesquisa de objeto
  • Loading branch information
JoaquimCMH authored Jul 7, 2020
2 parents 3be9628 + 401c1e4 commit de90bf9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions feed-al/scripts/create/create_contrato.sql
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ CREATE TABLE IF NOT EXISTS "contrato" (
"foto" VARCHAR(150),
"planilha" VARCHAR(150),
"ordem_servico" VARCHAR(150),
"language" VARCHAR(10),
"de_ugestora" VARCHAR(100),
"no_fornecedor" VARCHAR(100),
PRIMARY KEY("id_contrato"),
Expand Down
3 changes: 2 additions & 1 deletion transformador/R/sagres.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ generate_participante_id <- function(participantes_df) {
process_contrato <- function(contratos_df) {
contratos_df %<>% .extract_cd_municipio("cd_u_gestora") %>%
dplyr::filter(cd_municipio != "612") %>% #registro preenchido errado
generate_contrato_id()
generate_contrato_id() %>%
dplyr::mutate(language = 'portuguese')
}

#' @title Processa dataframe de licitações
Expand Down

0 comments on commit de90bf9

Please sign in to comment.