From bacf2631c17cd7db08befc55395f7b73a124c5c0 Mon Sep 17 00:00:00 2001 From: Jeremy Stanley Date: Fri, 22 Dec 2023 19:20:27 +0000 Subject: [PATCH] Record raw responses With the shift to returning raw responses from requests instead of the extracted text, we need to record them the same way for later replay. Change-Id: I506078cb74e3d15db8a28bef1174e914a8ca1d1b --- engagement/stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engagement/stats.py b/engagement/stats.py index 1ea7c3a..17d4dd3 100755 --- a/engagement/stats.py +++ b/engagement/stats.py @@ -43,7 +43,7 @@ def requester( print("Queried: %s" % response.url) if mode == 'record': # In record mode, also save a copy of the query results to replay - recording[(url, params)] = response.text + recording[(url, params)] = response return response