From c7058b51306c621aa65c68df8c1d0a71f5525097 Mon Sep 17 00:00:00 2001 From: AdamTheAnalyst Date: Sun, 28 Jul 2019 16:24:54 +0100 Subject: [PATCH 1/2] Removed length checking on identities to allow for companies with multiple countries of operation --- git4intel/client.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/git4intel/client.py b/git4intel/client.py index 00a0321..9fd2238 100644 --- a/git4intel/client.py +++ b/git4intel/client.py @@ -108,8 +108,6 @@ def store_core_data(self): def register_ident(self, id_bundle, _type): # Must only contain a id obj and a location ref # _type must be the relevant class (org or individual) - if len(id_bundle['objects']) != 2: - return False for obj in id_bundle['objects']: obj_type = str(obj['id']).split('--')[0] From b66a40bbd4e878ab5261f6a35530588966b901b3 Mon Sep 17 00:00:00 2001 From: AdamTheAnalyst Date: Mon, 29 Jul 2019 09:53:57 +0100 Subject: [PATCH 2/2] Added Daily Sync Notes --- git4intel/client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git4intel/client.py b/git4intel/client.py index 9fd2238..e13ee49 100644 --- a/git4intel/client.py +++ b/git4intel/client.py @@ -345,7 +345,9 @@ def get_objects(self, user_id, obj_ids, values=None): if values: if not isinstance(values, list): return False - q = {"query": {"bool": {"must": []}}} + q = { + "query": {"bool": {"must": []}}, + } id_q = {"bool": {"should": []}} for obj_id in obj_ids: id_q["bool"]["should"].append(