Skip to content

Commit

Permalink
fix probable bug in page calculation
Browse files Browse the repository at this point in the history
  • Loading branch information
jkitchin committed Jun 10, 2024
1 parent 4029a37 commit 7ab5135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openalex.el
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ Recently published papers are probably missing.
(meta (plist-get works-data :meta))
(count (plist-get meta :count))
(per-page (plist-get meta :per_page))
(pages 1)
(pages (/ count per-page))
(results (plist-get works-data :results))
(current-year (string-to-number (format-time-string "%Y" (current-time))))
(current-authors '())
Expand Down

0 comments on commit 7ab5135

Please sign in to comment.