mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-09-29 04:39:14 +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"])
|
||||
def delete():
|
||||
rand = random.randint(0, 100)
|
||||
if (rand != 100):
|
||||
return flask.jsonify({ "success": False, "reason": str(rand) + " IS NOT 100" })
|
||||
rand = random.randint(0, 10)
|
||||
if (rand != 10):
|
||||
return flask.jsonify({ "success": False, "reason": str(rand) + " IS NOT 10" })
|
||||
|
||||
id = flask.request.get_json().get('id')
|
||||
client["taiko"]["songs"].delete_one({ "id": id })
|
||||
|
Loading…
Reference in New Issue
Block a user