From 915e9de9ad327389b8c191d13bce0b5ad8aca7ae Mon Sep 17 00:00:00 2001 From: Phyks Date: Wed, 7 May 2014 22:38:25 +0200 Subject: [PATCH] Delete version in arxiv_id when updating, to get the correct result --- backend.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backend.py b/backend.py index 12c80ba..a97d17e 100644 --- a/backend.py +++ b/backend.py @@ -263,7 +263,9 @@ def updateArXiv(entry): return False arxiv_id = bibtex['Eprint'] - last_bibtex = BibTexParser(fetcher.arXiv2Bib(arxiv_id), + last_bibtex = BibTexParser(fetcher.arXiv2Bib(re.sub(r'v\d+\Z', + '', + arxiv_id)), customization=homogeneize_latex_encoding) last_bibtex = last_bibtex.get_entry_dict()