closeio / flask-mongorest

Restful API framework wrapped around MongoEngine
Other
523 stars 88 forks source link

Fix empty "xx__in=" filters #131

Closed AlecRosenbaum closed 3 years ago

AlecRosenbaum commented 3 years ago

This change defaults the value to an empty list, which should return no results. It also won't error anymore.

Previously, for empty xx__in= filters, value would be None and so the ',' in value check would throw a TypeError.

I'm not sure why CI isn't working, but I've run tests locally to confirm that it passes.