Open ghost opened 8 years ago
Well I did some more testing. Updated location to the other side of the world. When it looks for people nearby, it is finding nothing. However if i open the app, change the location - I can find tons of people.
def change_location():
x = ([51.507351, -0.127758], #london
[40.625272, -74.026909]) #brooklyn
session.update_location(x[y][0], x[y][1])
if y == 0:
print('location changed to London')
elif y == 1:
print('location changed to Brooklyn')
so the location might be changed server side, sure. But it's obviously not reflecting when finding nearby users. For it not to find people means there is something happening here that makes this change ineffective.
Is there something else that needs to be updated when the location is changed? Maybe we need to refresh the nearby users no?
Perhaps we need to update both location
AND pos
. Perhaps using a geocoder of some sort.
y is consistent with numbers outside of the function so it can be 0,0 or 1,1 --- the point is this is NOT changing the position. If you update_location - and then look for matches - the new matches are NOT in the new location.
i agree with @charliewolf - there has to be something else that needs to be updated in order to change location.
Sometimes it updates the location and sometimes it doesn't. I saw that if you wait enough it updates without any problems.
@modulebaan how long are we talking? an hour? hours? days?
Most of the time 15 minutes works but not always
I've found it wasn't working with me, but when I disabled my passport feature it started working again.
Try setting your passport option to "My current location".
I don't have Tinder Passport so it's always on 'My Current Location'
When location is changed using this update_location, its supposed to change the location but it's not actually updating on tinder.
Reproducible steps:
expected: new location in settings correlating to location above. whats happening: location never changed
import pynder import config
session = pynder.Session(config.FACEBOOK_ID, config.FACEBOOK_AUTH_TOKEN) print 'connection made'
session.update_location(37.774, -122.419)
output: connection made
Process finished with exit code 0