forked from MarseyWorld/MarseyWorld
fdsf
parent
86793cfa84
commit
0ac05dc3df
|
@ -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
|
||||
|
||||
|
|
|
@ -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}}')">
|
||||
|
|
Loading…
Reference in New Issue