From 36ba71c8390dfa41fd06fe3c5d01e688a19a696d Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Thu, 23 Jan 2025 11:46:46 +0900 Subject: [PATCH] fix --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index a0ddf63..f1362de 100644 --- a/app.py +++ b/app.py @@ -165,7 +165,7 @@ async def api_post(item: LiteYItem, req: Request): @app.post("/api/litey/delete") async def api_delete(item: LiteYDeleteItem): rand = randint(1, 100) - if rand is not 100: + if rand != 100: return PlainTextResponse(f"{rand} は 100 ではありません。", 403) ctx["mongo_client"].litey.notes.delete_one({