Skip to content

Commit

Permalink
chore: adiciona repeated = TRUE em URLencode
Browse files Browse the repository at this point in the history
  • Loading branch information
jjesusfilho committed Dec 7, 2024
1 parent 439845a commit 51a9b4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/tjsp_ler_tabela_docs.R
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ tjsp_ler_tabela_docs <- function(arquivos = NULL, diretorio = "."){
}) |>
dplyr::left_join(doc_name) |>
dplyr::select(id_doc, doc_name, pagina_inicial, pagina_final, url_doc) |>
dplyr::mutate(url_doc = paste0("https://esaj.tjsp.jus.br/pastadigital/getPDF.do?",url_doc) |> URLencode()) |>
dplyr::mutate(url_doc = paste0("https://esaj.tjsp.jus.br/pastadigital/getPDF.do?",url_doc) |> URLencode(repeated = TRUE)) |>
tibble::add_column(processo, .before =1)

})
Expand Down
2 changes: 1 addition & 1 deletion R/tjsp_ler_tabela_docs_cd_processo.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ tjsp_ler_tabela_docs_cd_processo <- function(arquivos = NULL, diretorio = "."){
}) |>
dplyr::left_join(doc_name) |>
dplyr::select(id_doc, doc_name, pagina_inicial, pagina_final, url_doc) |>
dplyr::mutate(url_doc = paste0("https://esaj.tjsp.jus.br/pastadigital/getPDF.do?",url_doc) |> URLencode()) |>
dplyr::mutate(url_doc = paste0("https://esaj.tjsp.jus.br/pastadigital/getPDF.do?",url_doc) |> URLencode(repeated = TRUE)) |>
tibble::add_column(cd_processo_pg, .before =1) |>
tibble::add_column(cd_processo_sg, .after = 1) |>
dplyr::mutate(instancia = ifelse(is.na(cd_processo_sg), 1, 2), .after = 2)
Expand Down

0 comments on commit 51a9b4c

Please sign in to comment.