This commit is contained in:
yuuki 2025-01-23 11:46:46 +09:00
parent dd417f1ed5
commit 36ba71c839

2
app.py
View file

@ -165,7 +165,7 @@ async def api_post(item: LiteYItem, req: Request):
@app.post("/api/litey/delete") @app.post("/api/litey/delete")
async def api_delete(item: LiteYDeleteItem): async def api_delete(item: LiteYDeleteItem):
rand = randint(1, 100) rand = randint(1, 100)
if rand is not 100: if rand != 100:
return PlainTextResponse(f"{rand} は 100 ではありません。", 403) return PlainTextResponse(f"{rand} は 100 ではありません。", 403)
ctx["mongo_client"].litey.notes.delete_one({ ctx["mongo_client"].litey.notes.delete_one({