aboutsummaryrefslogtreecommitdiff
path: root/app/views/tasks.py
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-05-12 18:50:09 +0100
committerrubenwardy <rw@rubenwardy.com>2018-05-12 18:50:09 +0100
commit38ed03f49a6f2cd5696c7781ee92bf8e80625b9e (patch)
treeb05bb1f8e73b93f22736a1cc72e219c6c800370b /app/views/tasks.py
parentdb3d63d91a7e97fe03875307640033bd0e50a8d7 (diff)
downloadcheatdb-38ed03f49a6f2cd5696c7781ee92bf8e80625b9e.tar.xz
Add Krock's mod search to meta importer to find forum topic ID
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 72d7d1d..c5a508a 100644
--- a/app/views/tasks.py
+++ b/app/views/tasks.py
@@ -13,7 +13,9 @@ from .utils import *
@app.route("/tasks/getmeta/new/", methods=["POST"])
@login_required
def new_getmeta_page():
- aresult = getMeta.delay(request.args.get("url"))
+ author = request.args.get("author")
+ author = current_user.forums_username if author is None else author
+ aresult = getMeta.delay(request.args.get("url"), author)
return jsonify({
"poll_url": url_for("check_task", id=aresult.id),
})