Private
Public Access
1
0

perf chart and gms chart now use rankingpiece

This commit is contained in:
Sander Roosendaal
2021-01-06 21:58:28 +01:00
parent 67fc069cf6
commit 44669eaa5d
2 changed files with 27 additions and 40 deletions

View File

@@ -1104,10 +1104,15 @@ def workout_goldmedalstandard(workout):
def check_marker(workout):
r = workout.user
gmstandard,gmseconds = workout_goldmedalstandard(workout)
if gmseconds<60:
return None
dd = arrow.get(workout.date).datetime-datetime.timedelta(days=r.kfit)
ws = Workout.objects.filter(date__gte=dd,
date__lte=workout.date,
user=r,duplicate=False,
workouttype__in=mytypes.rowtypes,
).order_by("date")
ids = []
gms = []