Skip to content

Commit

Permalink
update unittest to work with operations
Browse files Browse the repository at this point in the history
  • Loading branch information
cvanelteren committed Nov 14, 2024
1 parent 98c7c8a commit 3332f86
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion paper2remarkable/providers/arxiv.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def __init__(self, *args, **kwargs):
self.informer = ArxivInformer()

# register the dearxiv operation
self.operations.insert(0, ("dearxiv", self.dearxiv))
for format in self.operations:
if format in "pdf ps".split():
self.operations[format].insert(0, ("dearxiv", self.dearxiv))

def get_abs_pdf_urls(self, url):
"""Get the pdf and abs url from any given arXiv url"""
Expand Down

0 comments on commit 3332f86

Please sign in to comment.