Skip to content

Commit

Permalink
Polish print statements out
Browse files Browse the repository at this point in the history
  • Loading branch information
jerlendds committed Dec 13, 2023
1 parent b4c60e9 commit 10ba171
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/osintbuddy/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,11 @@ def __call__(self):
def _map_graph_data_labels(element, **kwargs):
label = to_snake_case(element['label'])
for element_key in kwargs.keys():
print('_map_graph_data_labels!!!!', element_key, label, element, kwargs)
if element_key == label:
if isinstance(kwargs[label], str):
element['value'] = kwargs[label]
elif isinstance(kwargs[label], dict):
for t in kwargs[label]:
print('for t in ', t, kwargs, label)
element[t] = kwargs[label][t]
return element

Expand Down Expand Up @@ -236,7 +234,6 @@ def blueprint(cls, **kwargs):
if isinstance(element, list):
row_elms = []
for elm in element:
print('elm', elm, elm.to_dict())
row_elms.append(cls._map_graph_data_labels(elm.to_dict(), **kwargs))
entity_ui_node['elements'].append(row_elms)
# otherwise position the entity elements vertically on the actual UI entity node
Expand Down

0 comments on commit 10ba171

Please sign in to comment.