Skip to content

Commit

Permalink
Fixed bug (improperly specified sorting command)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrevoort committed Jul 31, 2019
1 parent 2c7ec66 commit ef9df99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/build-database.R
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,10 @@ update_zotero_database <- function() {
db_file <- get_database_file()

dplyr::bind_rows(my_db, new_dt) %>%
arrange(-version) %>%
group_by(key) %>%
slice(1) %>%
ungroup() %>%
dplyr::arrange(desc(version)) %>%
dplyr::group_by(key) %>%
dplyr::slice(1) %>%
dplyr::ungroup() %>%
saveRDS(db_file)
} else {
warning('No new items found. Zotero2r database already up to date.',
Expand Down

0 comments on commit ef9df99

Please sign in to comment.