diff --git a/lib/fetch_book_data.rb b/lib/fetch_book_data.rb index b297ed95a..3381798be 100644 --- a/lib/fetch_book_data.rb +++ b/lib/fetch_book_data.rb @@ -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 = []