lint code

This commit is contained in:
Hugh Rundle 2021-11-01 11:58:08 +11:00
parent b593b9c9d3
commit 1533b55a32
2 changed files with 3 additions and 0 deletions

View file

@ -122,6 +122,7 @@ def get_author_isni_data(isni):
def build_author_dict(match_value): 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 it is an isni value get the data
if match_value.startswith("isni_match_"): if match_value.startswith("isni_match_"):

View file

@ -33,6 +33,7 @@ class EditBook(View):
data = {"book": book, "form": forms.EditionForm(instance=book)} data = {"book": book, "form": forms.EditionForm(instance=book)}
return TemplateResponse(request, "book/edit/edit_book.html", data) return TemplateResponse(request, "book/edit/edit_book.html", data)
# pylint: disable=too-many-variables
def post(self, request, book_id=None): def post(self, request, book_id=None):
"""edit a book cool""" """edit a book cool"""
# returns None if no match is found # returns None if no match is found
@ -76,6 +77,7 @@ class EditBook(View):
if i["isni"] == a.isni if i["isni"] == a.isni
] ]
# pylint: disable=cell-var-from-loop
isni_matches = list(filter(lambda x: x not in exists, isni_authors)) isni_matches = list(filter(lambda x: x not in exists, isni_authors))
data["author_matches"].append( data["author_matches"].append(