removing wind, setpower, stream
This commit is contained in:
@@ -778,59 +778,7 @@ class PredictedPieceFormNoDistance(forms.Form):
|
||||
value = forms.FloatField(initial=10, label='Free ranking piece')
|
||||
|
||||
|
||||
# On the Geeky side, to update stream information for river dwellers
|
||||
class UpdateStreamForm(forms.Form):
|
||||
unitchoices = (
|
||||
('m', 'm/s'),
|
||||
('f', 'foot/s'),
|
||||
('k', 'knots'),
|
||||
('p', 'pace difference (sec/500m)'),
|
||||
)
|
||||
dist1 = forms.FloatField(initial=0, label='Distance 1')
|
||||
dist2 = forms.FloatField(initial=1000, label='Distance 2')
|
||||
stream1 = forms.FloatField(initial=0, label='Stream velocity 1')
|
||||
stream2 = forms.FloatField(initial=0, label='Stream velocity 2')
|
||||
streamunit = forms.ChoiceField(required=True,
|
||||
choices=unitchoices,
|
||||
initial='m',
|
||||
label='Unit')
|
||||
|
||||
class Meta:
|
||||
fields = ['dist1', 'dist2', 'stream1', 'stream2', 'streamunit']
|
||||
|
||||
# add wind information to your workout
|
||||
|
||||
|
||||
class UpdateWindForm(forms.Form):
|
||||
unitchoices = (
|
||||
('m', 'm/s'),
|
||||
('k', 'knots'),
|
||||
('b', 'beaufort'),
|
||||
('kmh', 'km/h'),
|
||||
('mph', 'miles/hour'),
|
||||
)
|
||||
dist1 = forms.FloatField(initial=0, label='Distance 1')
|
||||
dist2 = forms.FloatField(initial=1000, label='Distance 2')
|
||||
vwind1 = forms.FloatField(initial=0, required=False, label='Wind Speed 1')
|
||||
vwind2 = forms.FloatField(initial=0, required=False, label='Wind Speed 2')
|
||||
windunit = forms.ChoiceField(required=True,
|
||||
choices=unitchoices,
|
||||
initial='m',
|
||||
label='Unit')
|
||||
winddirection1 = forms.IntegerField(initial=0, required=False,
|
||||
label='Wind Direction 1')
|
||||
winddirection2 = forms.IntegerField(initial=0, required=False,
|
||||
label='Wind Direction 2')
|
||||
|
||||
class Meta:
|
||||
fields = ['dist1', 'dist2',
|
||||
'vwind1', 'vwind2',
|
||||
'windunit',
|
||||
'winddirection1', 'winddirection2']
|
||||
|
||||
# Form to select a data range to show workouts from a certain time period
|
||||
|
||||
|
||||
class DateRangeForm(forms.Form):
|
||||
startdate = forms.DateField(
|
||||
initial=timezone.now()-datetime.timedelta(days=365),
|
||||
|
||||
Reference in New Issue
Block a user