Skip to content

Commit

Permalink
fix small bug in api_question_code
Browse files Browse the repository at this point in the history
  • Loading branch information
asegun-cod committed Oct 19, 2023
1 parent 8a96e9a commit 1cc8b72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/fct_api_pred.R
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ batch_predict <- function(df) {
#' @examples api_question_code(get_golem_config("comment_1"))
api_question_code <- function(value) {
dplyr::case_when(
value == "What did we do well" ~ "what_good",
value == "What could be improved" ~ "could_improve",
value == "What did we do well?" ~ "what_good",
value == "What could be improved?" ~ "could_improve",
TRUE ~ "nonspecific"
)
}
Expand Down

0 comments on commit 1cc8b72

Please sign in to comment.