log adding book only if it's new to the database

pull/1/head
eric 2012-05-25 13:13:15 -04:00
parent 1335b3cb72
commit 4ec7fef25c
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,6 @@ def add_by_isbn_from_google(isbn, work=None):
if len(isbn)==10:
isbn = regluit.core.isbn.convert_10_to_13(isbn)
logger.info("adding book by isbn %s", isbn)
# check if we already have this isbn
edition = get_edition_by_id(type='isbn',value=isbn)
@ -223,6 +222,7 @@ def add_by_isbn_from_google(isbn, work=None):
edition.new = False
return edition
logger.info("adding new book by isbn %s", isbn)
results=get_google_isbn_results(isbn)
if results:
try: