diff --git a/construct_email.py b/construct_email.py index b79c1e529..058d8c229 100644 --- a/construct_email.py +++ b/construct_email.py @@ -61,6 +61,7 @@ def get_empty_html(): def get_block_html(title:str, authors:str, rate:str,arxiv_id:str, abstract:str, pdf_url:str, code_url:str=None, affiliations:str=None): code = f'Code' if code_url else '' + paper_cool_url = f"https://papers.cool/arxiv/{arxiv_id}" block_template = """ @@ -94,12 +95,13 @@ def get_block_html(title:str, authors:str, rate:str,arxiv_id:str, abstract:str,
PDF + Papers.Cool {code}
""" - return block_template.format(title=title, authors=authors,rate=rate,arxiv_id=arxiv_id, abstract=abstract, pdf_url=pdf_url, code=code, affiliations=affiliations) + return block_template.format(title=title, authors=authors,rate=rate,arxiv_id=arxiv_id, abstract=abstract, pdf_url=pdf_url, code=code, paper_cool_url=paper_cool_url, affiliations=affiliations) def get_stars(score:float): full_star = ''