Skip to content

Commit

Permalink
Don't consider repeated repo URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
csoneson committed Jul 18, 2024
1 parent 2df33e8 commit 60e1312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion joss-submission-analytics.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ software_urls[!is_github]
```

```{r get-software-repos, class.source = 'fold-show', message = FALSE, results = 'hide', warning = FALSE}
df <- do.call(dplyr::bind_rows, lapply(software_urls[is_github], function(u) {
df <- do.call(dplyr::bind_rows, lapply(unique(software_urls[is_github]), function(u) {
u0 <- gsub("^http://", "https://", gsub("\\.git$", "", gsub("/$", "", u)))
if (grepl("/tree/", u0)) {
u0 <- strsplit(u0, "/tree/")[[1]][1]
Expand Down

0 comments on commit 60e1312

Please sign in to comment.