Private
Public Access
1
0

solves #502 fixed

This commit is contained in:
Sander Roosendaal
2019-09-09 17:05:51 +02:00
parent 7c77e87aa3
commit 1180b72edc
4 changed files with 22 additions and 8 deletions

View File

@@ -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,