From 7be05369b74414cba37dc49dee56fe691b22b80f Mon Sep 17 00:00:00 2001 From: yuukiwww <167487626+yuukiwww@users.noreply.github.com> Date: Fri, 19 Apr 2024 08:47:50 +0000 Subject: [PATCH] =?UTF-8?q?1/10=E3=81=A7=E3=81=84=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app.py b/app.py index de1cc83..776a629 100644 --- a/app.py +++ b/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 })