Implement custom netscape file parser (#51)

* Implement custom Netscape file parser (#50)

* Add environment variable to configure request timeouts (#50)

Co-authored-by: Sascha Ißbrücker <sissbruecker@lyska.io>
This commit is contained in:
Sascha Ißbrücker
2020-12-31 07:02:28 +01:00
committed by GitHub
parent 50a825b3ca
commit 779de41b65
7 changed files with 111 additions and 51 deletions

View File

@@ -35,7 +35,7 @@ def bookmark_import(request):
return HttpResponseRedirect(reverse('bookmarks:settings.index'))
try:
content = import_file.read()
content = import_file.read().decode()
result = import_netscape_html(content, request.user)
success_msg = str(result.success) + ' bookmarks were successfully imported.'
messages.success(request, success_msg, 'bookmark_import_success')