Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions git4intel/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -347,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(
Expand Down