ghelobytes / geomodel

Automatically exported from code.google.com/p/geomodel
0 stars 1 forks source link

Combining proximity_fetch and order("-modified") is not working here #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
a = A.proximity_fetch(A.all().filter("modified ",
 timeline).filter("published =", True).filter("modified <=",
 bookmark ).order("-modified") ,db.GeoPt(lat, lon),max_results=PAGESIZE
 +1, max_distance=m)

What is the expected output? What do you see instead?
order("-modified") should sort by time. Results come out seemingly random 
sorted.

What version of the product are you using? On what operating system?
Google App Engine production server + geomodel 

Please provide any additional information below.
I'm trying to order by date using db.GeoPt to store google maps coordinates 
with GAE and geomodel I can map and match Sao Paulo and can't sort by time 
linked http://forum.koolbusiness.com/li?lat=-23.33&lon=-46.38

Original issue reported on code.google.com by nikla...@gmail.com on 21 Sep 2010 at 8:28

Attachments:

GoogleCodeExporter commented 9 years ago
A workaround now enabled the wanted effect using lambda sorting. Thanks for a 
great software.

Original comment by nikla...@gmail.com on 22 Sep 2010 at 6:27