diff --git a/bookwyrm/utils/isni.py b/bookwyrm/utils/isni.py index 38b67ec2a..fa208cd81 100644 --- a/bookwyrm/utils/isni.py +++ b/bookwyrm/utils/isni.py @@ -122,6 +122,7 @@ def get_author_isni_data(isni): def build_author_dict(match_value): + """Build dict with basic author details from ISNI or author name""" # if it is an isni value get the data if match_value.startswith("isni_match_"): diff --git a/bookwyrm/views/books/edit_book.py b/bookwyrm/views/books/edit_book.py index f0e5dd144..80a66d73b 100644 --- a/bookwyrm/views/books/edit_book.py +++ b/bookwyrm/views/books/edit_book.py @@ -33,6 +33,7 @@ class EditBook(View): data = {"book": book, "form": forms.EditionForm(instance=book)} return TemplateResponse(request, "book/edit/edit_book.html", data) + # pylint: disable=too-many-variables def post(self, request, book_id=None): """edit a book cool""" # returns None if no match is found @@ -76,6 +77,7 @@ class EditBook(View): if i["isni"] == a.isni ] + # pylint: disable=cell-var-from-loop isni_matches = list(filter(lambda x: x not in exists, isni_authors)) data["author_matches"].append(