From e4622a505406cec89f6d291652778d8fc45174ef Mon Sep 17 00:00:00 2001 From: Elia Maracani Date: Sat, 26 Sep 2020 11:02:13 +0200 Subject: [PATCH] Update post_to_amp() code When sending the POST request, we should use the payload from the argument of the post_to_amp() function, not the external variable. --- intro-amp/amp_custom_detect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/intro-amp/amp_custom_detect.py b/intro-amp/amp_custom_detect.py index 9782413..750db59 100644 --- a/intro-amp/amp_custom_detect.py +++ b/intro-amp/amp_custom_detect.py @@ -85,7 +85,7 @@ def post_to_amp( url = f"https://{client_id}:{api_key}@{host}/v1/file_lists/{list_id}/files/{SAMPLE_SHA256}" - response = requests.post(url, post_this, verify=False) + response = requests.post(url, payload, verify=False) response.raise_for_status() rdata = response.json()["data"]