From f980c7947a0facddcb93f58b6d8146d7d577be1e Mon Sep 17 00:00:00 2001 From: Andrej Karpathy Date: Sat, 22 Jan 2022 16:36:11 -0800 Subject: [PATCH] link to arxiv-sanity-lite instead of directly to arxiv --- send_emails.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/send_emails.py b/send_emails.py index 8103dbd..b0d8ee2 100644 --- a/send_emails.py +++ b/send_emails.py @@ -158,6 +158,8 @@ def render_recommendations(user, tags, tag_pids, tag_scores): summary = summary[:min(500, len(summary))] if len(summary) == 500: summary += '...' + # create the url that will feature this paper on top and also show the most similar papers + url = 'https://arxiv-sanity-lite.com/?rank=pid&pid=' + pid parts.append( """ @@ -168,7 +170,7 @@ def render_recommendations(user, tags, tag_pids, tag_scores):
%s
-""" % (score, p['link'], p['title'], max_source_tag[pid], authors, summary) +""" % (score, url, p['title'], max_source_tag[pid], authors, summary) ) # render the final html