mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-09-30 21:29:31 +02:00
1/10でいい
This commit is contained in:
parent
127bf9c9e4
commit
7be05369b7
6
app.py
6
app.py
@ -824,9 +824,9 @@ def upload_file():
|
|||||||
|
|
||||||
@app.route("/api/delete", methods=["POST"])
|
@app.route("/api/delete", methods=["POST"])
|
||||||
def delete():
|
def delete():
|
||||||
rand = random.randint(0, 100)
|
rand = random.randint(0, 10)
|
||||||
if (rand != 100):
|
if (rand != 10):
|
||||||
return flask.jsonify({ "success": False, "reason": str(rand) + " IS NOT 100" })
|
return flask.jsonify({ "success": False, "reason": str(rand) + " IS NOT 10" })
|
||||||
|
|
||||||
id = flask.request.get_json().get('id')
|
id = flask.request.get_json().get('id')
|
||||||
client["taiko"]["songs"].delete_one({ "id": id })
|
client["taiko"]["songs"].delete_one({ "id": id })
|
||||||
|
Loading…
Reference in New Issue
Block a user