predicthq/sdk-py

place.scope and place.exact don't seem to be supported properly

Closed this issue · 2 comments

There are currently no tests including place.scope or place.exact and a quick look seems like the Place model doesn't get formatted correctly in _to_url_params.

If you use place__scope="place1,place2" instead of place__scope=["place1", "place2"] it does work, but i don't think that's how it should be working based on the other params.

To clarify for anyone coming later. The actual recommended way the place param should be used is place={"scope": ["place1", "place2"], "exact": "place3"} and this has now been fixed.