From 3ae4c5f2f42d8e016632377c48ab781c76ca0cee Mon Sep 17 00:00:00 2001 From: Relakkes Date: Thu, 3 Aug 2023 22:26:31 +0800 Subject: [PATCH] fix: issue #23 --- models/xiaohongshu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/xiaohongshu.py b/models/xiaohongshu.py index 40c750b..2b36ece 100644 --- a/models/xiaohongshu.py +++ b/models/xiaohongshu.py @@ -65,7 +65,7 @@ async def update_xhs_note(note_item: Dict): local_db_item = { "note_id": note_item.get("note_id"), "type": note_item.get("type"), - "title": note_item.get("title") or note_item.get("desc", ""), + "title": note_item.get("title") or note_item.get("desc", "")[:255], "desc": note_item.get("desc", ""), "time": note_item.get("time"), "last_update_time": note_item.get("last_update_time", 0),