From 45f39fab480c6ced9df2435442642d726e24aa42 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 29 Oct 2020 23:28:23 -0700 Subject: [PATCH] upping confidence for import search better to query OL than to get the wrong book locally --- bookwyrm/models/import_job.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bookwyrm/models/import_job.py b/bookwyrm/models/import_job.py index 240e0694..54b6c438 100644 --- a/bookwyrm/models/import_job.py +++ b/bookwyrm/models/import_job.py @@ -64,7 +64,7 @@ class ImportItem(models.Model): def get_book_from_isbn(self): ''' search by isbn ''' search_result = books_manager.first_search_result( - self.isbn, min_confidence=0.5 + self.isbn, min_confidence=0.992 ) if search_result: try: @@ -82,7 +82,7 @@ class ImportItem(models.Model): self.data['Author'] ) search_result = books_manager.first_search_result( - search_term, min_confidence=0.5 + search_term, min_confidence=0.992 ) if search_result: try: