milesrichardson / ParsePy

A relatively up-to-date fork of ParsePy, the Python wrapper for the Parse.com API. Originally maintained by @dgrtwo
MIT License
515 stars 184 forks source link

Combination Filter #127

Open ghost opened 9 years ago

ghost commented 9 years ago

How use 'and' and 'or' filter ?

obj = Peta.Query.filter(lokasi__nearSphere=my_loc)
obj = obj.filter(lokasi__maxDistanceInKilometers=27.0)

give me empty result.

With raw REST request to api.parse.com have a result,,,,

flplv commented 9 years ago

Would you mind to post a reproducible code ? Where you write objects, save them and then try to filter. I couldn't understand what is it you are actually filtering.

On Thu, Oct 8, 2015 at 2:09 AM, Wirasto S. Karim notifications@github.com wrote:

How use 'and' and 'or' filter ?

obj = Peta.Query.filter(lokasi__nearSphere=my_loc) obj = obj.filter(lokasi__maxDistanceInKilometers=27.0)

give me empty result.

With raw REST request to api.parse.com have a result,,,,

— Reply to this email directly or view it on GitHub https://github.com/dgrtwo/ParsePy/issues/127.

Skype: felipeanl