mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-16 13:16:33 +00:00
lint code
This commit is contained in:
parent
b593b9c9d3
commit
1533b55a32
2 changed files with 3 additions and 0 deletions
|
@ -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_"):
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue