aboutsummaryrefslogtreecommitdiff
path: root/app/views/tasks.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/tasks.py')
-rw-r--r--app/views/tasks.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/tasks.py b/app/views/tasks.py
index b82c326..64ed702 100644
--- a/app/views/tasks.py
+++ b/app/views/tasks.py
@@ -10,7 +10,8 @@ from .utils import shouldReturnJson
from .utils import *
-@app.route("/tasks/getmeta/new/")
+@app.route("/tasks/getmeta/new/", methods=["POST"])
+@login_required
def new_getmeta_page():
aresult = getMeta.delay(request.args.get("url"))
return jsonify({
@@ -18,6 +19,7 @@ def new_getmeta_page():
})
@app.route("/tasks/<id>/")
+@login_required
def check_task(id):
result = celery.AsyncResult(id)
status = result.status