diff --git a/rowers/dataprep.py b/rowers/dataprep.py index c7fe2a0b..dc236d51 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -1139,7 +1139,7 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower', btvalues=btvalues.to_json()) - return (encoder.encode_hex(w.id), message) + return (w.id, message) parsers = { 'kinomap': KinoMapParser, diff --git a/rowers/management/commands/processemail.py b/rowers/management/commands/processemail.py index 84e34924..6010c55f 100644 --- a/rowers/management/commands/processemail.py +++ b/rowers/management/commands/processemail.py @@ -77,12 +77,12 @@ def processattachment(rower, fileobj, title, uploadoptions,testing=False): link = settings.SITE_URL+reverse( rower.defaultlandingpage, kwargs = { - 'id':workoutid[0], + 'id':encoder.encode_hex(workoutid[0]), } ) if uploadoptions and not 'error' in uploadoptions: - workout = Workout.objects.get(id=encoder.decode_hex(workoutid[0])) + workout = Workout.objects.get(id=workoutid[0]) uploads.make_private(workout, uploadoptions) uploads.set_workouttype(workout, uploadoptions) uploads.do_sync(workout, uploadoptions) diff --git a/rowers/templates/plannedsessions.html b/rowers/templates/plannedsessions.html index e59befdd..573df861 100644 --- a/rowers/templates/plannedsessions.html +++ b/rowers/templates/plannedsessions.html @@ -142,20 +142,20 @@ {% if workout.user.user == user or user == team.manager %} {% if workout.name != '' %}
See the how-to at the bottom of this page for details on how to use this form.
-