1
0
Fork 0

Only use get_or_create_book with remote_id

This commit is contained in:
Mouse Reeve 2020-05-10 17:40:22 -07:00
parent 0f579e7d8d
commit 35ca61d7f6
7 changed files with 15 additions and 39 deletions

View file

@ -118,7 +118,7 @@ def edit_profile(request):
def resolve_book(request):
''' figure out the local path to a book from a remote_id '''
remote_id = request.POST.get('remote_id')
book = get_or_create_book(remote_id, key='remote_id')
book = get_or_create_book(remote_id)
return redirect('/book/%d' % book.id)