perf chart and gms chart now use rankingpiece
This commit is contained in:
@@ -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 = []
|
||||
|
||||
Reference in New Issue
Block a user