actor_fetcher: quick fix

master
Erik de Vries 5 years ago
parent 9e433ecf9e
commit 82ef165c5f

@ -37,6 +37,7 @@ actor_fetcher <- function(out, sent_dict = NULL, cores = 1, localhost = NULL, va
### Party ids including actors ### Party ids including actors
p_ids_a <- c(p_ids,str_c(pid,'_a')) p_ids_a <- c(p_ids,str_c(pid,'_a'))
summarizer <- function (p_ids, dupe_df, merged_id) { summarizer <- function (p_ids, dupe_df, merged_id) {
id <- dupe_df$`_id`[[1]]
dupe_df <- dupe_df %>% dupe_df <- dupe_df %>%
filter(ids %in% p_ids) filter(ids %in% p_ids)
if (nrow(dupe_df) > 0) { if (nrow(dupe_df) > 0) {
@ -58,7 +59,7 @@ actor_fetcher <- function(out, sent_dict = NULL, cores = 1, localhost = NULL, va
) )
) )
} else { } else {
print(dupe_df$`_id`[[1]]) print(id)
return(NULL) return(NULL)
} }
} }

Loading…
Cancel
Save