Skip to content

Commit

Permalink
clean formating strings (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
crisely09 authored Oct 31, 2024
1 parent 0451e90 commit 30ed671
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kgforge/core/reshaping.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,12 +114,12 @@ def collect_values_jp(data: Resource, follow: str,
constraint_dict: Optional[Dict] = None) -> List[str]:
try:
properties = follow.split('.')
pattern = f"$." + "[*].".join(properties)
pattern = "$." + "[*].".join(properties)
jp_query = jp.parse(pattern)
data = as_json(data, False, False, None, None, None)
results = jp_query.find(data)
if len(results) == 0:
raise exception(f"Path not found")
raise exception(f"Path {follow} not found")
if constraint_dict:
if len(constraint_dict) != 1:
raise NotImplementedError("Only one constraint can be impossed at the moment")
Expand Down

0 comments on commit 30ed671

Please sign in to comment.