Swapped some arguments in the URL to allow for transfer uids containing slashes
parent
968803ca77
commit
763fb95b52
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue