From b1335d28111c82606503b8cf4a78b546edb51cf4 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Mon, 15 Mar 2021 15:33:05 -0700 Subject: [PATCH] Formatting --- bookwyrm/urls.py | 4 +--- bookwyrm/views/list.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bookwyrm/urls.py b/bookwyrm/urls.py index 05382e93..199827ae 100644 --- a/bookwyrm/urls.py +++ b/bookwyrm/urls.py @@ -117,9 +117,7 @@ urlpatterns = [ # lists re_path(r"^list/?$", views.Lists.as_view(), name="lists"), re_path(r"^list/(?P\d+)(.json)?/?$", views.List.as_view(), name="list"), - re_path( - r"^list/add-book/?$", views.list.add_book, name="list-add-book" - ), + re_path(r"^list/add-book/?$", views.list.add_book, name="list-add-book"), re_path( r"^list/(?P\d+)/remove/?$", views.list.remove_book, diff --git a/bookwyrm/views/list.py b/bookwyrm/views/list.py index eb82a0f1..91475d48 100644 --- a/bookwyrm/views/list.py +++ b/bookwyrm/views/list.py @@ -175,7 +175,7 @@ class Curate(View): @require_POST def add_book(request): """ put a book on a list """ - book_list = get_object_or_404(models.List, id=request.POST.get('list')) + book_list = get_object_or_404(models.List, id=request.POST.get("list")) if not object_visible_to_user(request.user, book_list): return HttpResponseNotFound()