Skip to content

Commit

Permalink
fix_algorithm_id handle : in alg name
Browse files Browse the repository at this point in the history
  • Loading branch information
JanCaha committed Jun 29, 2023
1 parent 7269a11 commit 80d73c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion build-package/build-functions/functions_fix_algorithm_id.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fix_algorithm_id <- function(algorithm_id) {
stringr::str_replace_all(algorithm_id, "\\.", "_")
algorithm_id = stringr::str_replace_all(algorithm_id, "\\.", "_")
algorithm_id = stringr::str_replace_all(algorithm_id, ":", "_")
algorithm_id
}
2 changes: 1 addition & 1 deletion build-package/build_QGIS_functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ for (i in 1:nrow(algs)) {
alg <- algs[i,]

if (Sys.getenv("GITHUB_PAT") != "") {
print(glue::glue("{i}/{nrow(algs)} - {alg$provider[1]}:{alg$algorithm_id}"))
print(glue::glue("{i}/{nrow(algs)} - {alg$provider[1]}:{fix_algorithm_id(alg$algorithm_id)}"))
}

if (alg$provider[1] == "native") {
Expand Down

0 comments on commit 80d73c1

Please sign in to comment.