UrbanCCD-UChicago / aot-client-py

The Official Python Client to the Array of Things API
https://api.arrayofthings.org/
Other
6 stars 2 forks source link

F.__iand__ method doesn't construct valid URL #7

Closed chrisluedtke closed 5 years ago

chrisluedtke commented 5 years ago

F.__iand__

from aot_client import AotClient
from aot_client import F

client = AotClient()

f = F()
f &= ('sensor', 'image.image_detector.person_total')
f &= ('sensor', 'image.image_detector.car_total')

observations = client.list_observations(filters=f)

HTTPError: 500 Server Error: Internal Server Error for url: https://api.arrayofthings.org/api/observations?sensor%5B%5D=eq%3Aimage.image_detector.person_total&sensor%5B%5D=eq%3Aimage.image_detector.car_total

vforgione commented 5 years ago

This seems like some sort of regression in the API -- I tried manually curling the same request and it blew up.

I'm low on bandwidth right now, so it's difficult to put an ETA on this.

vforgione commented 5 years ago

I found myself with some time to fix this. It's good to go now. I also found the same bug applied to array values for nodes and took care of that too.