Rank 1: Thread
I search my problem and although there are existing posts on it i can't get to a solution.
I have a problem with querying float attributes in a python function.
Here is a part of the code:
print(float(long - 0.06))
print(float(lat + 0.06))
listOfExistingPoint = database.list_documents('647754cad43d1180e76f', '64789c3f1418d562efc4',
[
Query.between('longitude', float(long - 0.06), float(long + 0.06)),
Query.between('latitude', float(lat - 0.06), float(lat + 0.06))
]
)
the above print functions write out a float value as expected (in my case 49.94 and 50.06). At this point i am casting to float every time i use the values because i have no idea why they don't get recognized as float. Any help will be appreciated 🙂