Private
Public Access
1
0

athlete edit permissions in place

This commit is contained in:
Sander Roosendaal
2019-02-16 10:31:47 +01:00
parent 259d6f28bb
commit 6afde11b7c
8 changed files with 121 additions and 13 deletions

View File

@@ -404,6 +404,12 @@ def isprorower(r):
result = r.rowerplan == 'basic' and r.protrialexpires >= datetime.date.today()
return result
def iscoach(m,r):
result = False
result = m in r.coaches
return result
# Exponentially weighted moving average
# Used for data smoothing of the jagged data obtained by Strava