adding favorite analysis to workouts list
This commit is contained in:
@@ -74,6 +74,16 @@ timezones = (
|
||||
(x,x) for x in pytz.common_timezones
|
||||
)
|
||||
|
||||
favanalysischoices = (
|
||||
('compare','Compare'),
|
||||
('flexall','Cumulative Flex Chart'),
|
||||
('histogram','Histogram'),
|
||||
('stats','Statistics'),
|
||||
('boxplot','Box Chart'),
|
||||
('trendflex','Trend Flex'),
|
||||
('cp','Critical Power'),
|
||||
)
|
||||
|
||||
def half_year_from_now():
|
||||
return (datetime.datetime.now(tz=timezone.utc)+timezone.timedelta(days=182)).date()
|
||||
|
||||
@@ -977,16 +987,6 @@ class Rower(models.Model):
|
||||
slowpaceotw = models.DurationField(default=otwpaceslow,verbose_name='Slowest OTW Pace')
|
||||
fastpaceotw = models.DurationField(default=otwpacefast,verbose_name='Fastest OTW Pace')
|
||||
|
||||
favanalysischoices = (
|
||||
('compare','Compare'),
|
||||
('flexall','Cumulative Flex Chart'),
|
||||
('histogram','Histogram'),
|
||||
('stats','Statistics'),
|
||||
('boxplot','Box Chart'),
|
||||
('trendflex','Trend Flex'),
|
||||
('cp','Critical Power'),
|
||||
)
|
||||
|
||||
fav_analysis = models.CharField(default='compare',choices=favanalysischoices,
|
||||
max_length=100,
|
||||
verbose_name='Favorite Analysis')
|
||||
|
||||
Reference in New Issue
Block a user