pylint Y U like this?

This commit is contained in:
Hugh Rundle 2021-11-01 20:04:25 +11:00
parent 6556090524
commit c3ba7ba547
3 changed files with 4 additions and 2 deletions

View file

@ -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"""

View file

@ -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()

View file

@ -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