From a14ab8cc151df0fd20e7defddfecb7b025199f6b Mon Sep 17 00:00:00 2001 From: Greg Kempe Date: Mon, 22 Jan 2024 13:18:45 +0200 Subject: [PATCH] don't fetch bills from indigo --- peachjam/adapters/adapters.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/peachjam/adapters/adapters.py b/peachjam/adapters/adapters.py index dcce7da84..b0ef27180 100644 --- a/peachjam/adapters/adapters.py +++ b/peachjam/adapters/adapters.py @@ -110,6 +110,10 @@ def get_doc_list(self): while url: res = self.client_get(url).json() + # ignore bills + # TODO: later, make this configurable + res["results"] = [r for r in res["results"] if r["nature"] != "bill"] + # Filter by actor, if setting is present actor = self.settings.get("actor", None) if actor: