Fixes error in add author code returning too soon

This commit is contained in:
Mouse Reeve 2022-05-23 13:52:10 -07:00
parent b2c587e082
commit 69f192e78c
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -189,7 +189,7 @@ def add_authors(request, data):
"existing_isnis": exists,
}
)
return data
return data
@require_POST