aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/web.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-12 18:41:34 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-12 18:41:34 -0700
commit94287566b04e1dbfe3ab36d69ceb31bb0bba4c6e (patch)
tree8f39b7f28149aad58c9050138dbb77c592b771f4 /fatcat_scholar/web.py
parent76ce486dafbe2d1c3f93c6d9fafdcdcb967a644f (diff)
downloadfatcat-scholar-94287566b04e1dbfe3ab36d69ceb31bb0bba4c6e.tar.gz
fatcat-scholar-94287566b04e1dbfe3ab36d69ceb31bb0bba4c6e.zip
mark TODOs inline
Diffstat (limited to 'fatcat_scholar/web.py')
-rw-r--r--fatcat_scholar/web.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py
index a705e20..8cf2c88 100644
--- a/fatcat_scholar/web.py
+++ b/fatcat_scholar/web.py
@@ -406,6 +406,7 @@ def access_redirect_fallback(
timestamp = access_url.split("/")[4]
# if not (len(timestamp) == 14 and timestamp.isdigit()):
# continue
+ # TODO: only add 'id_' for PDF replay
replay_url = (
f"https://web.archive.org/web/{timestamp}id_/{original_url}"
)
@@ -468,6 +469,7 @@ def access_redirect_wayback(
timestamp = opt.access_url.split("/")[4]
if not (len(timestamp) == 14 and timestamp.isdigit()):
continue
+ # TODO: only add id_ for PDF replay
access_url = f"https://web.archive.org/web/{timestamp}id_/{original_url}"
return RedirectResponse(access_url, status_code=302)
return access_redirect_fallback(