mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-14 12:51:08 +00:00
Fixes error in add author code returning too soon
This commit is contained in:
parent
b2c587e082
commit
69f192e78c
2 changed files with 2 additions and 2 deletions
|
@ -233,4 +233,4 @@ class EditBookViews(TestCase):
|
|||
self.assertEqual(result["add_author"], ["Sappho", "Some Guy"])
|
||||
self.assertEqual(len(result["author_matches"]), 2)
|
||||
self.assertEqual(result["author_matches"][0]["name"], "Sappho")
|
||||
self.assertEqual(result["author_matches"][2]["name"], "Some Guy")
|
||||
self.assertEqual(result["author_matches"][1]["name"], "Some Guy")
|
||||
|
|
|
@ -189,7 +189,7 @@ def add_authors(request, data):
|
|||
"existing_isnis": exists,
|
||||
}
|
||||
)
|
||||
return data
|
||||
return data
|
||||
|
||||
|
||||
@require_POST
|
||||
|
|
Loading…
Reference in a new issue