fix
This commit is contained in:
@@ -1396,9 +1396,12 @@ def course_mapcompare_view(request, id=0):
|
|||||||
#workoutids = [result.workoutid for result in results]
|
#workoutids = [result.workoutid for result in results]
|
||||||
workoutids = []
|
workoutids = []
|
||||||
for result in results:
|
for result in results:
|
||||||
w = Workout.objects.get(id=result.workoutid)
|
try:
|
||||||
if w.startdatetime >= startdate and w.startdatetime <= enddate:
|
w = Workout.objects.get(id=result.workoutid)
|
||||||
workoutids.append(result.workoutid)
|
if w.startdatetime >= startdate and w.startdatetime <= enddate:
|
||||||
|
workoutids.append(result.workoutid)
|
||||||
|
except Workout.DoesNotExist: # pragma: no cover
|
||||||
|
pass
|
||||||
|
|
||||||
startenddict = {}
|
startenddict = {}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user