some refinements
This commit is contained in:
@@ -22,6 +22,8 @@ import xml.etree.ElementTree as et
|
||||
from xml.etree.ElementTree import Element, SubElement, Comment, tostring
|
||||
from xml.dom import minidom
|
||||
|
||||
from rowers.models import VirtualRace
|
||||
|
||||
# distance of course from lat_lon in km
|
||||
def howfaris(lat_lon,course):
|
||||
coords = course.coord
|
||||
@@ -64,7 +66,7 @@ def getnearestraces(lat_lon,races,whatisnear=150):
|
||||
return races
|
||||
|
||||
def getnearestcourses(lat_lon,courses,whatisnear=150,strict=False):
|
||||
print(lat_lon,whatisnear)
|
||||
|
||||
newlist = []
|
||||
counter = 0
|
||||
for c in courses:
|
||||
|
||||
Reference in New Issue
Block a user