diff --git a/etc/init.d/pandora-tasks b/etc/init.d/pandora-tasks index 5467b27..37dc996 100755 --- a/etc/init.d/pandora-tasks +++ b/etc/init.d/pandora-tasks @@ -19,7 +19,7 @@ PANDORA_BASE=/srv/pandora DAEMON_USER="pandora" DAEMON_NAME=pandora/manage.py DAEMON="$PANDORA_BASE/$DAEMON_NAME" -DAEMON_ARGS="celeryd -Q tasks -n pandora-tasks -f /var/log/pandora/pandora-tasks.log -l INFO" +DAEMON_ARGS="celeryd -Q default -n pandora-tasks -f /var/log/pandora/pandora-tasks.log -l INFO" PIDFILE=/var/run/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME diff --git a/pandora/archive/views.py b/pandora/archive/views.py index ef3b6fa..7b82599 100644 --- a/pandora/archive/views.py +++ b/pandora/archive/views.py @@ -127,6 +127,7 @@ def upload(request): } } ''' + response = json_response({}) f = get_object_or_404_json(models.File, oshash=request.POST['oshash']) if 'frame' in request.FILES: if f.frames.count() == 0: @@ -136,7 +137,6 @@ def upload(request): position = float(os.path.splitext(name)[0]) fr, created = models.Frame.objects.get_or_create(file=f, position=position) fr.frame.save(name, frame) - response = json_response({}) else: response = json_response(status=403, text='permissino denied') if 'file' in request.FILES: