mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-09-29 04:39:14 +02:00
削除を簡単にする
This commit is contained in:
parent
9ae556bfea
commit
127bf9c9e4
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, 1000)
|
||||
if (rand != 1000):
|
||||
return flask.jsonify({ "success": False, "reason": str(rand) + " IS NOT 1000" })
|
||||
rand = random.randint(0, 100)
|
||||
if (rand != 100):
|
||||
return flask.jsonify({ "success": False, "reason": str(rand) + " IS NOT 100" })
|
||||
|
||||
id = flask.request.get_json().get('id')
|
||||
client["taiko"]["songs"].delete_one({ "id": id })
|
||||
|
Loading…
Reference in New Issue
Block a user