mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-27 03:51:08 +00:00
Provide a default title for imported reviews.
This commit is contained in:
parent
5edef615c8
commit
31b71cf35f
1 changed files with 9 additions and 1 deletions
|
@ -371,8 +371,16 @@ def import_data(request):
|
|||
|
||||
outgoing.handle_import_books(request.user, results)
|
||||
for item in reviews:
|
||||
review_title = "Review of {!r} on Goodreads".format(
|
||||
item.book.title,
|
||||
) if item.review else ""
|
||||
outgoing.handle_review(
|
||||
request.user, item.book, "", item.review, item.rating)
|
||||
request.user,
|
||||
item.book,
|
||||
review_title,
|
||||
item.review,
|
||||
item.rating,
|
||||
)
|
||||
return TemplateResponse(request, 'import_results.html', {
|
||||
'success_count': len(results),
|
||||
'failures': failures,
|
||||
|
|
Loading…
Reference in a new issue