fix
This commit is contained in:
@@ -582,9 +582,10 @@ class IntervalsIntegration(SyncIntegration):
|
||||
try:
|
||||
id = record['id']
|
||||
try:
|
||||
w = Workout.objects.get(uploadedtointervals=id)
|
||||
ws = Workout.objects.filter(uploadedtointervals=id)
|
||||
if w.user == self.rower:
|
||||
w.delete()
|
||||
for w in ws:
|
||||
w.delete()
|
||||
except Workout.DoesNotExist:
|
||||
pass
|
||||
except KeyError:
|
||||
|
||||
@@ -534,6 +534,7 @@ sexcategories = (
|
||||
)
|
||||
|
||||
waterboattype = [i[0] for i in boattypes]
|
||||
ergtype = [i[0] for i in ergtypes]
|
||||
|
||||
privacychoices = (
|
||||
('private', 'Private'),
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -1134,7 +1134,7 @@ def workouts_join_select(request,
|
||||
if 'waterboattype' in request.session:
|
||||
waterboattype = request.session['waterboattype']
|
||||
else:
|
||||
waterboattype = mytypes.waterboattype
|
||||
waterboattype = mytypes.waterboattype+mytypes.ergtype
|
||||
|
||||
if 'modalities' in request.session:
|
||||
modalities = request.session['modalities']
|
||||
|
||||
Reference in New Issue
Block a user