master
Aevann1 2021-09-17 17:20:38 +02:00
parent 86793cfa84
commit 0ac05dc3df
2 changed files with 3 additions and 4 deletions

View File

@ -198,7 +198,7 @@ ALLOW_MULTIPLE = (
"stars"
)
@app.post("/fucking")
@app.post("/post/<pid>/awards")
@auth_required
def award_post(pid, v):
@ -206,8 +206,7 @@ def award_post(pid, v):
return {"error": "forbidden."}, 403
kind = request.form.get("kind", "")
print("sex")
if kind not in AWARDS:
return {"error": "That award doesn't exist."}, 404

View File

@ -17,7 +17,7 @@ function bruh(kind) {
</button>
</div>
<div id="awardModalBody" class="modal-body">
<form action="/fucking" method="post">
<form id="awardTarget" class="pt-3 pb-0" action="" method="post">
<div class="card-columns awards-wrapper">
{% for award in v.user_awards %}
<a href="javascript:void(0)" id="{{award.kind}}" class="card" onclick="bruh('{{award.kind}}')">