Private
Public Access
1
0

processes files > 1 MB offline

This commit is contained in:
Sander Roosendaal
2017-11-02 15:53:54 +01:00
parent c871d69097
commit c974927192
6 changed files with 129 additions and 29 deletions

View File

@@ -53,7 +53,7 @@ import sys
import utils
import datautils
from utils import lbstoN
from utils import lbstoN,myqueue
from timezonefinder import TimezoneFinder
@@ -975,17 +975,12 @@ def new_workout_from_file(r, f2,
if len(fileformat) == 3 and fileformat[0] == 'zip':
f_to_be_deleted = f2
title = os.path.basename(f2)
if settings.DEBUG:
res = handle_zip_file.delay(
r.user.email, title, f2
)
else:
res = queuelow.enqueue(
handle_zip_file,
r.user.email,
title,
f2
res = myqueue(
queuelow,
handle_zip_file,
r.user.email,
title,
f2
)
return -1, message, f2