processes files > 1 MB offline
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user