Private
Public Access
1
0

removing races from plan overview

This commit is contained in:
Sander Roosendaal
2018-12-30 15:52:11 +01:00
parent 53bfd170fc
commit 7866355385
2 changed files with 10 additions and 5 deletions

View File

@@ -1,5 +1,8 @@
from rowers.imports import *
import mytypes
from rowers.mytypes import otwtypes
from rowsandall_app.settings import (
UNDERARMOUR_CLIENT_KEY,
UNDERARMOUR_CLIENT_SECRET,
@@ -417,7 +420,7 @@ def add_workout_from_data(user,importid,data,strokedata,
times_location = times_distance
latcoord = np.zeros(len(times_distance))
loncoord = np.zeros(len(times_distance))
if workouttype in types.otwtypes:
if workouttype in otwtypes:
workouttype = 'rower'
try:

View File

@@ -18839,10 +18839,12 @@ def rower_trainingplan_view(request,
type='userdefined').order_by("startdate")
for mm in microcycles:
sps = PlannedSession.objects.filter(
rower = r,
startdate__lte=mm.enddate,
enddate__gte=mm.startdate)
sps = get_sessions(r,startdate=mm.startdate,enddate=mm.enddate)
# sps = PlannedSession.objects.filter(
# rower = r,
# startdate__lte=mm.enddate,
# enddate__gte=mm.startdate)
mm.plantime = 0