Private
Public Access
1
0

excluding basic users from auto sync

This commit is contained in:
Sander Roosendaal
2018-06-07 18:08:17 +02:00
parent a8f6e0ac07
commit e054b0d1a0
6 changed files with 43 additions and 21 deletions

View File

@@ -369,3 +369,12 @@ def totaltime_sec_to_string(totaltime):
duration = "%s:%s:%s.%s" % (hours, minutes, seconds, tenths)
return duration
def isprorower(r):
result = False
result = r.rowerplan in ['pro','coach','plan']
if not result and r.protrialexpires:
result = r.rowerplan is 'basic' and r.protrialexpires >= datetime.date.today()
return result