From 145a0f698df298a0b4cefef4bbdd98976ad181b6 Mon Sep 17 00:00:00 2001 From: autonomic Date: Wed, 9 Mar 2022 09:39:29 +0100 Subject: [PATCH] Changed operator for contact subtype to "contains" When it was "=" it didn't get ones with multiple subtypes. --- confdump.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/confdump.py b/confdump.py index cd2fad5..f894343 100644 --- a/confdump.py +++ b/confdump.py @@ -241,7 +241,7 @@ def main() -> int: # dump org contacts output = args.output / ("Contact.json") - data = api.get("Contact", where=[["contact_sub_type", "=", "Political_Party"]]) + data = api.get("Contact", where=[["contact_sub_type", "CONTAINS", "Political_Party"]]) if data: print("dumping parties") with output.open("w") as of: