Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean formating strings from previous commit #426

Merged
merged 1 commit into from
Oct 31, 2024
Merged
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
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
Loading