Private
Public Access
1
0

some refinements

This commit is contained in:
Sander Roosendaal
2021-10-08 17:11:23 +02:00
parent d526646410
commit 03edc5a57f
5 changed files with 7 additions and 6 deletions

View File

@@ -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: