Skip to content

Commit

Permalink
Remove convert to unicode customization (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitorfs authored Sep 29, 2021
1 parent f6d268f commit 0e80924
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions parsifal/apps/reviews/conducting/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import bibtexparser
import xlwt
from bibtexparser.bparser import BibTexParser
from bibtexparser.customization import convert_to_unicode

from parsifal.apps.reviews.decorators import author_required
from parsifal.apps.reviews.models import (
Expand Down Expand Up @@ -670,7 +669,6 @@ def import_bibtex(request):
if ext in valid_extensions or bibtex_file.content_type == "application/x-bibtex":
try:
parser = BibTexParser(common_strings=True)
parser.customization = convert_to_unicode
bib_database = bibtexparser.load(bibtex_file, parser=parser)
articles = bibtex_to_article_object(bib_database, review, source)
_import_articles(request, source, articles)
Expand Down Expand Up @@ -698,7 +696,6 @@ def import_bibtex_raw_content(request):
source = Source.objects.get(pk=source_id)

parser = BibTexParser(common_strings=True)
parser.customization = convert_to_unicode
bib_database = bibtexparser.loads(bibtex_file, parser=parser)
articles = bibtex_to_article_object(bib_database, review, source)
_import_articles(request, source, articles)
Expand Down
1 change: 1 addition & 0 deletions parsifal/newsfragments/91.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix issue while trying to import a bibtex file.

0 comments on commit 0e80924

Please sign in to comment.