Private
Public Access
1
0

fixing zip - without uploadoptions

This commit is contained in:
Sander Roosendaal
2020-02-18 20:54:43 +01:00
parent 80b4a26667
commit fc6dd7e347
4 changed files with 16 additions and 24 deletions

View File

@@ -1470,7 +1470,7 @@ def new_workout_from_file(r, f2,
boattype='1x',
makeprivate=False,
notes=''):
message = None
message = ""
impeller = False
try:
fileformat = get_file_type(f2)
@@ -1495,6 +1495,7 @@ def new_workout_from_file(r, f2,
f3 = f3[6:]
a = MessageAttachment(message=msg,document=f3)
a.save()
message = "Zip file was stored for offline processing"
return -1, message, f2