diff --git a/bookwyrm/templatetags/utilities.py b/bookwyrm/templatetags/utilities.py index c2112d0b7..7424d15f3 100644 --- a/bookwyrm/templatetags/utilities.py +++ b/bookwyrm/templatetags/utilities.py @@ -84,6 +84,7 @@ def get_isni_bio(existing, author): return "" +# pylint: disable=unused-argument @register.filter(name="get_isni", needs_autoescape=True) def get_isni(existing, author, autoescape=True): """Returns the isni ID if an existing author has an ISNI listing""" diff --git a/bookwyrm/utils/isni.py b/bookwyrm/utils/isni.py index 1c46a87fb..074531408 100644 --- a/bookwyrm/utils/isni.py +++ b/bookwyrm/utils/isni.py @@ -146,7 +146,7 @@ def augment_author_metadata(author, isni): ) author.bio = isni_data["bio"] if len(author.bio) == 0 else author.bio aliases = set(isni_data["aliases"]) - for x in author.aliases: - aliases.add(x) + for alias in author.aliases: + aliases.add(alias) author.aliases = list(aliases) author.save() diff --git a/bookwyrm/views/books/edit_book.py b/bookwyrm/views/books/edit_book.py index 555206e35..73ae2e0db 100644 --- a/bookwyrm/views/books/edit_book.py +++ b/bookwyrm/views/books/edit_book.py @@ -148,6 +148,7 @@ class EditBook(View): class ConfirmEditBook(View): """confirm edits to a book""" + # pylint: disable=too-many-locals def post(self, request, book_id=None): """edit a book cool""" # returns None if no match is found