Fix looking up book using ISBN

This commit is contained in:
2023-04-11 22:47:10 -04:00
parent 7db98f0979
commit 6d613028fc
3 changed files with 6 additions and 7 deletions

View File

@ -161,12 +161,10 @@ class Book(LongPlayScrobblableMixin):
return progress
@classmethod
def find_or_create(cls, data_dict: dict) -> "Game":
def find_or_create(cls, lookup_id: str, author: str = "") -> "Game":
from books.utils import update_or_create_book
return update_or_create_book(
data_dict.get("title"), data_dict.get("author")
)
return update_or_create_book(lookup_id, author)
class Page(TimeStampedModel):