You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now I'm asking jsonpath_ng to change the previous value to 2, but I get an error:
> pp.update_or_create([{'section': 1}], 2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/pete/.pyenv/versions/3.9.9/lib/python3.9/site-packages/jsonpath_ng/jsonpath.py", line 289, in update_or_create
return _clean_list_keys(data)
File "/home/pete/.pyenv/versions/3.9.9/lib/python3.9/site-packages/jsonpath_ng/jsonpath.py", line 763, in _clean_list_keys
for key, value in dict_.items():
AttributeError: 'list' object has no attribute 'items'
Seems like a bug in handling first path element.
The text was updated successfully, but these errors were encountered:
Root object and first path element are inconsistent, yet update_or_create returns (and modifies original object!)
Now I'm asking jsonpath_ng to change the previous value to 2, but I get an error:
Seems like a bug in handling first path element.
The text was updated successfully, but these errors were encountered: