From de507ce3c48ccbb1aecd4ef43cab7d2796f77dab Mon Sep 17 00:00:00 2001 From: dethanga <41729073+dethanga@users.noreply.github.com> Date: Mon, 1 Feb 2021 16:50:36 +0530 Subject: [PATCH] post_this argument is updated with payload post_this argument is updated with payload - refer to line 88 --- 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"]