chore: removes dead code
This commit is contained in:
parent
0d0fe3aa30
commit
4fd883b0fd
1 changed files with 0 additions and 18 deletions
|
|
@ -16,24 +16,6 @@ logger = get_logger(level=ERROR)
|
||||||
|
|
||||||
|
|
||||||
def format_triplets(edges):
|
def format_triplets(edges):
|
||||||
print("\n\n\n")
|
|
||||||
|
|
||||||
def filter_attributes(obj, attributes):
|
|
||||||
"""Helper function to filter out non-None properties, including nested dicts."""
|
|
||||||
result = {}
|
|
||||||
for attr in attributes:
|
|
||||||
value = getattr(obj, attr, None)
|
|
||||||
if value is not None:
|
|
||||||
# If the value is a dict, extract relevant keys from it
|
|
||||||
if isinstance(value, dict):
|
|
||||||
nested_values = {
|
|
||||||
k: v for k, v in value.items() if k in attributes and v is not None
|
|
||||||
}
|
|
||||||
result[attr] = nested_values
|
|
||||||
else:
|
|
||||||
result[attr] = value
|
|
||||||
return result
|
|
||||||
|
|
||||||
triplets = []
|
triplets = []
|
||||||
for edge in edges:
|
for edge in edges:
|
||||||
node1 = edge.node1
|
node1 = edge.node1
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue