Merge pull request #543 from mouse-reeve/import-url

Fixes import paths
This commit is contained in:
Mouse Reeve 2021-01-19 07:19:14 -08:00 committed by GitHub
commit 146e92480b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -43,7 +43,7 @@ class Import(View):
except (UnicodeDecodeError, ValueError):
return HttpResponseBadRequest('Not a valid csv file')
goodreads_import.start_import(job)
return redirect('/import-status/%d' % job.id)
return redirect('/import/%d' % job.id)
return HttpResponseBadRequest()
@ -80,4 +80,4 @@ class ImportStatus(View):
items,
)
goodreads_import.start_import(job)
return redirect('/import-status/%d' % job.id)
return redirect('/import/%d' % job.id)