Swapped some arguments in the URL to allow for transfer uids containing slashes
parent
968803ca77
commit
a1f0aa13da
|
@ -9,7 +9,7 @@
|
||||||
div.style.display = "none";
|
div.style.display = "none";
|
||||||
|
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open("GET", "/admin/match/" + username + "/" + uid + "/" + months, true);
|
xhr.open("GET", "/admin/match/" + username + "/" + months + "/" + uid, true);
|
||||||
xhr.send();
|
xhr.send();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
function payment(months, uid, username)
|
function payment(months, uid, username)
|
||||||
{
|
{
|
||||||
var xhr = new XMLHttpRequest();
|
var xhr = new XMLHttpRequest();
|
||||||
xhr.open("GET", "/admin/match/" + username + "/" + uid + "/" + months, true);
|
xhr.open("GET", "/admin/match/" + username + "/" + months + "/" + uid, true);
|
||||||
xhr.send();
|
xhr.send();
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -209,7 +209,7 @@ def match_manual():
|
||||||
transfers_unmatched = logic.get_unmatched_transfers()
|
transfers_unmatched = logic.get_unmatched_transfers()
|
||||||
return render_template("match_manual.html", transfers_unmatched=transfers_unmatched)
|
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
|
@login_required
|
||||||
@admin_required
|
@admin_required
|
||||||
def match(username, uid, months):
|
def match(username, uid, months):
|
||||||
|
|
Loading…
Reference in New Issue