From 31058d1c29e1cc2695a5025ac720e4e988a5bc19 Mon Sep 17 00:00:00 2001 From: yuuki <> Date: Fri, 14 Jun 2024 11:23:09 +0000 Subject: [PATCH] =?UTF-8?q?NG=E3=83=AF=E3=83=BC=E3=83=89=E3=81=AE=E5=9E=8B?= =?UTF-8?q?=E3=82=92=E6=8C=87=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index f0814dd..897fcda 100644 --- a/app.py +++ b/app.py @@ -100,7 +100,7 @@ def get_litey_notes(id: str = None) -> List[dict]: return mongo_client.litey.notes.find_one({ "id": id }, { "_id": False }) -def get_ng_words(): +def get_ng_words() -> List[str]: cursor = mongo_client.litey.ngs.find({}, { "_id": False }) return [ng["word"] for ng in list(cursor) if "word" in ng]