From 15887f85c9c4b2381d82ee7777baed31006aa9ef Mon Sep 17 00:00:00 2001 From: WindMill <3361266560@qq.com> Date: Fri, 14 Mar 2025 16:18:09 +0800 Subject: [PATCH 1/3] : add papers.cool url --- construct_email.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/construct_email.py b/construct_email.py index 67527c6dd..2bc87279d 100644 --- a/construct_email.py +++ b/construct_email.py @@ -60,6 +60,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 = f'Papers.Cool' block_template = """ @@ -94,11 +95,12 @@ def get_block_html(title:str, authors:str, rate:str,arxiv_id:str, abstract:str,
PDF {code} + {paper_cool}
""" - 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=paper_cool, affiliations=affiliations) def get_stars(score:float): full_star = '' From accd673618e6972df8d400aefb7e2880866c1f3d Mon Sep 17 00:00:00 2001 From: WindMill <3361266560@qq.com> Date: Fri, 14 Mar 2025 17:10:59 +0800 Subject: [PATCH 2/3] : fix paper cool bug --- construct_email.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/construct_email.py b/construct_email.py index 2bc87279d..c366a6c9e 100644 --- a/construct_email.py +++ b/construct_email.py @@ -60,7 +60,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 = f'Papers.Cool' + paper_cool_url = f"https://papers.cool/arxiv/{arxiv_id}" block_template = """ @@ -94,13 +94,13 @@ def get_block_html(title:str, authors:str, rate:str,arxiv_id:str, abstract:str,
PDF + TestPapers.Cool {code} - {paper_cool}
""" - return block_template.format(title=title, authors=authors,rate=rate,arxiv_id=arxiv_id, abstract=abstract, pdf_url=pdf_url, code=code, paper_cool=paper_cool, 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 = '' From 6916f63df7942e1da2318be6d77ac5e91379775a Mon Sep 17 00:00:00 2001 From: WindMill <3361266560@qq.com> Date: Fri, 14 Mar 2025 17:25:35 +0800 Subject: [PATCH 3/3] : change button color --- construct_email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/construct_email.py b/construct_email.py index c366a6c9e..7d04e826f 100644 --- a/construct_email.py +++ b/construct_email.py @@ -94,7 +94,7 @@ def get_block_html(title:str, authors:str, rate:str,arxiv_id:str, abstract:str, PDF - TestPapers.Cool + Papers.Cool {code}