File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -258,8 +258,8 @@ def _paper_paths_list(self):
258
258
259
259
def _get_paper_meta (self , paper ) -> dict :
260
260
return {
261
- "doi" : paper .meta .get ("doi" , None ), # For parsing via DOI
262
- "eprint" : paper .meta .get ("eprint" , None ), # For parsing via arxiv
261
+ "doi" : paper .meta .get ("doi" , "" ), # For parsing via DOI
262
+ "eprint" : paper .meta .get ("eprint" , "" ), # For parsing via arxiv
263
263
"bibtex_path" : str (paper .bibtex_path ),
264
264
"bibtex_key" : str (paper ._bibtex_key ),
265
265
}
@@ -274,7 +274,13 @@ def add_using_arxiv(self, arxiv: str):
274
274
self ._update_db ()
275
275
276
276
def add_using_doi (self , doi : str , pdf : str ):
277
- if doi is not None and doi not in list (self .db .get ("doi" , list ())):
277
+ if (
278
+ doi is not None and
279
+ doi .lower () not in map (
280
+ lambda x : x .lower (),
281
+ self .db .get ("doi" , list ())
282
+ )
283
+ ):
278
284
self .append_to_db (Paper .new_paper_from_doi (doi , pdf ))
279
285
280
286
self ._update_db ()
You can’t perform that action at this time.
0 commit comments