excluding basic users from auto sync
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user