Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Books with no title found can always have another chance

  • Loading branch information...
commit 5b19ff81dcc09daddf00f9a0294e2ef84ac4783f 1 parent 8d5ae77
@joemsak joemsak authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/tasks/book_titles.rake
View
2  lib/tasks/book_titles.rake
@@ -4,7 +4,7 @@ desc "find & store the book titles"
task :book_titles => :environment do
Book.all.each do |book|
api_url = "http://isbndb.com/api/books.xml?access_key=AIDOFPMK&index1=isbn&value1="
- if book.value.blank?
+ if book.value.blank? or book.value == "No title found"
api_url += book.key
Book.add_title open(api_url), book
end
Please sign in to comment.
Something went wrong with that request. Please try again.