From 37cff6882db161628b667b10bbd3cebde5f202ad Mon Sep 17 00:00:00 2001 From: hayden outlaw <98779749+outlawhayden@users.noreply.github.com> Date: Fri, 8 Dec 2023 11:26:50 -0600 Subject: [PATCH 1/2] Update README.md --- README.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/README.md b/README.md index 3add7f39..7cfd4574 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,6 @@ Work in Progress -## Tulane Dev Integration Branch - -Sawt is a tool designed to bridge the communication gap between New Orleanians and their city council representatives. - ## Prerequisites - Install [DVC](https://dvc.org/doc/install) From 712f6525b179c6b4aa924696417a0e6e1d1df98a Mon Sep 17 00:00:00 2001 From: hayden outlaw Date: Mon, 11 Dec 2023 14:41:45 -0600 Subject: [PATCH 2/2] fixing varied responses formatting --- .../googlecloud/functions/getanswer/process_public_queries.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/googlecloud/functions/getanswer/process_public_queries.py b/packages/googlecloud/functions/getanswer/process_public_queries.py index 32f080fc..9f2fcc9d 100644 --- a/packages/googlecloud/functions/getanswer/process_public_queries.py +++ b/packages/googlecloud/functions/getanswer/process_public_queries.py @@ -21,8 +21,8 @@ def make_api_call(title, k_inp): response = requests.post(f"{api_endpoint}", json=payload) rdict = json.loads(response.text) card_type_out = rdict["card_type"] - citations_out = rdict["citations"] - responses_out = rdict["responses"] + citations_out = json.dumps(eval(str(rdict["citations"]))) + responses_out = json.dumps(eval(str(rdict["responses"]))) return card_type_out, citations_out, responses_out, k_inp # Open CSV file in append mode