add match option to stravaexportas
This commit is contained in:
@@ -748,6 +748,7 @@ class CoachingGroup(models.Model):
|
||||
class Rower(models.Model):
|
||||
adaptivetypes = mytypes.adaptivetypes
|
||||
stravatypes = (
|
||||
('match','Variable - try to match the type'),
|
||||
('Ride','Ride'),
|
||||
('Kitesurf','Kitesurf'),
|
||||
('Run','Run'),
|
||||
@@ -965,7 +966,7 @@ class Rower(models.Model):
|
||||
stravatokenexpirydate = models.DateTimeField(blank=True,null=True)
|
||||
stravarefreshtoken = models.CharField(default='',max_length=1000,
|
||||
blank=True,null=True)
|
||||
stravaexportas = models.CharField(default="Rowing",
|
||||
stravaexportas = models.CharField(default="match",
|
||||
max_length=30,
|
||||
choices=stravatypes,
|
||||
verbose_name="Export Workouts to Strava as")
|
||||
@@ -2292,7 +2293,7 @@ class PlannedSession(models.Model):
|
||||
if self.sessionvalue <= 0:
|
||||
self.sessionvalue = 1
|
||||
|
||||
|
||||
|
||||
manager = self.manager
|
||||
if self.sessiontype not in ['race','indoorrace']:
|
||||
if not can_add_session(self.manager):
|
||||
|
||||
Reference in New Issue
Block a user