Skip to content

Commit 1ddb40e

Browse files
authored
fix book fetch from CMS (#1278)
1 parent 895b793 commit 1ddb40e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/fetch_book_data.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def fetch_titles
1919

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

2424
books_with_subject = []
2525

0 commit comments

Comments
 (0)