From 74eb3393d35ed55240c21fc380053427ef63002c Mon Sep 17 00:00:00 2001 From: Castro0o Date: Mon, 3 Feb 2020 10:00:51 +0100 Subject: [PATCH] correct unpack response function --- generate_index.html.py | 0 sandbox/ask_wiki.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 generate_index.html.py diff --git a/generate_index.html.py b/generate_index.html.py new file mode 100644 index 0000000..e69de29 diff --git a/sandbox/ask_wiki.py b/sandbox/ask_wiki.py index 4877191..bd69a8d 100644 --- a/sandbox/ask_wiki.py +++ b/sandbox/ask_wiki.py @@ -31,7 +31,7 @@ def unpack_response(response): page = response['fulltext'] d['page'] = page for prop in printouts: - p_item = answer['printouts'][prop] + p_item = response['printouts'][prop] for prop_val in p_item: if isinstance(prop_val, dict) is False: d[prop] = prop_val