1/10でいい

This commit is contained in:
yuukiwww 2024-04-19 08:47:50 +00:00
parent 127bf9c9e4
commit 7be05369b7

6
app.py
View File

@ -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 })