Skip to content

Commit

Permalink
fix book fetch from CMS (#1278)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo authored Nov 7, 2024
1 parent 895b793 commit 1ddb40e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fetch_book_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def fetch_titles

items = results.fetch('items', [])
# See https://github.com/openstax/openstax-cms/blob/main/books/constants.py#L7 for book states
books = items.reject{ %w[retired unlisted].include?(i['book_state']) }
books = items.reject { |i| %w[retired unlisted].include?(i['book_state']) }

books_with_subject = []

Expand Down

0 comments on commit 1ddb40e

Please sign in to comment.