diff options
author | rubenwardy <rw@rubenwardy.com> | 2018-05-12 18:50:09 +0100 |
---|---|---|
committer | rubenwardy <rw@rubenwardy.com> | 2018-05-12 18:50:09 +0100 |
commit | 38ed03f49a6f2cd5696c7781ee92bf8e80625b9e (patch) | |
tree | b05bb1f8e73b93f22736a1cc72e219c6c800370b /app/views/tasks.py | |
parent | db3d63d91a7e97fe03875307640033bd0e50a8d7 (diff) | |
download | cheatdb-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.py | 4 |
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), }) |