merge latest changes and add tests
This commit is contained in:
parent
e5b260e3ee
commit
06d6360082
8 changed files with 241 additions and 32 deletions
|
@ -16,6 +16,7 @@ from django.views import View
|
|||
from bookwyrm import forms, models
|
||||
from bookwyrm.importers import (
|
||||
BookwyrmImporter,
|
||||
BookwyrmBooksImporter,
|
||||
CalibreImporter,
|
||||
LibrarythingImporter,
|
||||
GoodreadsImporter,
|
||||
|
@ -105,8 +106,8 @@ class Import(View):
|
|||
request.user,
|
||||
TextIOWrapper(request.FILES["csv_file"], encoding=importer.encoding),
|
||||
include_reviews,
|
||||
create_shelves,
|
||||
privacy,
|
||||
create_shelves,
|
||||
)
|
||||
except (UnicodeDecodeError, ValueError, KeyError):
|
||||
return self.get(request, invalid=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue