From 94287566b04e1dbfe3ab36d69ceb31bb0bba4c6e Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 12 Oct 2021 18:41:34 -0700 Subject: mark TODOs inline --- fatcat_scholar/web.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fatcat_scholar') 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( -- cgit v1.2.3