From acefb282f24e4f249a270ecfe9877e5e5025cd90 Mon Sep 17 00:00:00 2001 From: Tom Morrell Date: Wed, 14 Aug 2024 08:35:47 -0700 Subject: [PATCH] Fix typo --- ames/harvesters/caltechauthors.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ames/harvesters/caltechauthors.py b/ames/harvesters/caltechauthors.py index 18e6dd8..80b182a 100644 --- a/ames/harvesters/caltechauthors.py +++ b/ames/harvesters/caltechauthors.py @@ -40,7 +40,7 @@ def get_request_id_title(token, request): } response = requests.get(url, headers=headers) if response.status_code != 200: - print(f"Error getting comments for request {p}") + print(f"Error getting comments for request {request}") response = response.json() date = response["updated"].split("T")[0] return response["topic"]["record"], response["title"], date @@ -54,7 +54,7 @@ def get_request_comments(token, request): } response = requests.get(url, headers=headers) if response.status_code != 200: - print(f"Error getting comments for request {p}") + print(f"Error getting comments for request {request}") comments = response.json()["hits"]["hits"] cleaned = [] for c in comments: