Mercurial > hg > GlobalNeighbors
diff globalneighbors/web.py @ 14:27925261c137
fix broken tests including an aggregious case where we add ourselves as a neighbor to ourself
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 25 Jun 2017 14:29:18 -0700 |
parents | 94af113e498a |
children | 21095c9006e5 |
line wrap: on
line diff
--- a/globalneighbors/web.py Sun Jun 25 14:04:49 2017 -0700 +++ b/globalneighbors/web.py Sun Jun 25 14:29:18 2017 -0700 @@ -63,7 +63,7 @@ retval = [{"name": i[name], "geonameid": i['geonameid']} for i in cities] - return sorted(retval)[:limit] + return sorted(retval, key=lambda x: x['name'])[:limit] class Handler(object):