Adds actor
This commit is contained in:
parent
e357f4a7a6
commit
e30e06c283
10 changed files with 225 additions and 22 deletions
|
@ -18,6 +18,8 @@ def get_book(request, olkey):
|
|||
book = Book(openlibary_key=olkey)
|
||||
data = response.json()
|
||||
book.data = data
|
||||
if request and request.user and request.user.is_authenticated:
|
||||
book.added_by = request.user
|
||||
book.save()
|
||||
for work_id in data['works']:
|
||||
work_id = work_id['key']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue