Skip to content
Permalink
Browse files

Merge pull request #2038 from hornc/feature/amazon-api

Fix price lookup by ISBN13 bug
  • Loading branch information...
mekarpeles committed Apr 10, 2019
2 parents 5ea080e + 9edf4c8 commit d0eb9ac2687527c173234311e41cd18d1b662c47
Showing with 2 additions and 2 deletions.
  1. +2 −2 openlibrary/plugins/openlibrary/api.py
@@ -244,8 +244,8 @@ def GET(self):
# if bwb fails and isbn10, try again with isbn13
if id_type == 'isbn_10' and \
metadata['betterworldbooks'].get('price') is None:
isbn_13 = isbn_10_to_isbn_13(id_type)
metadata['betterworldbooks'] = get_betterworldbooks_metadata(
isbn_13 = isbn_10_to_isbn_13(id_)
metadata['betterworldbooks'] = isbn_13 and get_betterworldbooks_metadata(
isbn_13) or {}

# fetch book by isbn if it exists

0 comments on commit d0eb9ac

Please sign in to comment.
You can’t perform that action at this time.