Skip to content

Commit 59f5d9a

Browse files
committed
refactor
1 parent e63e8de commit 59f5d9a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distance.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def distance(a,b):
8282
for dest in possibleDests:
8383
dest['dist'] = distance(refSource,dest)
8484
# sort by smallest -> largest distance and select smallest
85-
possibleDests.sort(key=lambda e:e['dist'])
85+
possibleDests.sort(key=db.sortKeyMinDist)
8686
refDest = possibleDests[0]
8787

8888
srcLat = float(refSource['latitude_deg'])

0 commit comments

Comments
 (0)