Skip to content

Commit

Permalink
static_table: fixed handling of organism
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Sep 18, 2023
1 parent cc7636e commit 21d7b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/static.R
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ static_table <- function(
'experiencing issues.'
)

organism %<>% as.character %>% as.integer
organism %<>% as.integer %>% as.character

query_l <- str_to_lower(query)
resource_l <- str_to_lower(resource)
Expand All @@ -153,7 +153,7 @@ static_table <- function(
filter(
query == query_l &
str_to_lower(resource) == resource_l &
organism == organism
organism == .env$organism
) %>%
{`if`(
nrow(.) < 1L,
Expand Down

0 comments on commit 21d7b9a

Please sign in to comment.