Swapped some arguments in the URL to allow for transfer uids containing slashes

master
Kasownik 2017-02-12 01:12:32 +01:00
parent 968803ca77
commit 763fb95b52
3 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@
div.style.display = "none";
var xhr = new XMLHttpRequest();
xhr.open("GET", "/admin/match/" + username + "/" + uid + "/" + months, true);
xhr.open("GET", "/admin/match/" + username + "/" + months + "/" + uid, true);
xhr.send();
}
</script>

View File

@ -6,7 +6,7 @@
function payment(months, uid, username)
{
var xhr = new XMLHttpRequest();
xhr.open("GET", "/admin/match/" + username + "/" + uid + "/" + months, true);
xhr.open("GET", "/admin/match/" + username + "/" + months + "/" + uid, true);
xhr.send();
}
</script>

View File

@ -209,7 +209,7 @@ def match_manual():
transfers_unmatched = logic.get_unmatched_transfers()
return render_template("match_manual.html", transfers_unmatched=transfers_unmatched)
@app.route("/admin/match/<username>/<uid>/<int:months>")
@app.route("/admin/match/<username>/<int:months>/<path:uid>")
@login_required
@admin_required
def match(username, uid, months):