diff options
Diffstat (limited to 'module/web/ajax/views.py')
-rw-r--r-- | module/web/ajax/views.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/module/web/ajax/views.py b/module/web/ajax/views.py index d00c283f1..a4bfb5573 100644 --- a/module/web/ajax/views.py +++ b/module/web/ajax/views.py @@ -38,7 +38,9 @@ class JsonResponse(HttpResponse): def add_package(request): name = request.POST['add_name'] - + + queue = int(request.POST['add_dest']) + links = request.POST['add_links'].replace(" ","\n").split("\n") try: @@ -61,7 +63,7 @@ def add_package(request): links = filter(lambda x: x != "", links) - settings.PYLOAD.add_package(name, links) + settings.PYLOAD.add_package(name, links, queue) return JsonResponse("success") |