solves #502 fixed
This commit is contained in:
@@ -1123,7 +1123,6 @@ def save_workout_database(f2, r, dosmooth=True, workouttype='rower',
|
||||
inboard=inboard, oarlength=oarlength,
|
||||
timezone=timezone_str,
|
||||
privacy=privacy)
|
||||
|
||||
try:
|
||||
w.save()
|
||||
except ValidationError:
|
||||
@@ -1298,6 +1297,7 @@ def new_workout_from_file(r, f2,
|
||||
makeprivate=False,
|
||||
notes=''):
|
||||
message = None
|
||||
print('noot',notes)
|
||||
try:
|
||||
fileformat = get_file_type(f2)
|
||||
except (IOError,UnicodeDecodeError):
|
||||
@@ -1391,9 +1391,10 @@ def new_workout_from_file(r, f2,
|
||||
|
||||
if workoutsource is None:
|
||||
workoutsource = fileformat
|
||||
|
||||
|
||||
id, message = save_workout_database(
|
||||
f2, r,
|
||||
notes=notes,
|
||||
workouttype=workouttype,
|
||||
weightcategory=r.weightcategory,
|
||||
adaptiveclass=r.adaptiveclass,
|
||||
|
||||
Reference in New Issue
Block a user