From 127bf9c9e407a68ce87681579b35f6d6c799f46c Mon Sep 17 00:00:00 2001 From: yuukiwww <167487626+yuukiwww@users.noreply.github.com> Date: Fri, 19 Apr 2024 08:47:00 +0000 Subject: [PATCH] =?UTF-8?q?=E5=89=8A=E9=99=A4=E3=82=92=E7=B0=A1=E5=8D=98?= =?UTF-8?q?=E3=81=AB=E3=81=99=E3=82=8B?= 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 b5733ea..de1cc83 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, 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 })