mirror of
https://github.com/NanmiCoder/MediaCrawler.git
synced 2026-10-08 04:58:11 +08:00
fix: 移除orm的所有内容
This commit is contained in:
@@ -7,7 +7,6 @@ from typing import List
|
||||
import config
|
||||
|
||||
from . import xhs_store_impl
|
||||
from .xhs_store_db_types import *
|
||||
from .xhs_store_impl import *
|
||||
|
||||
|
||||
@@ -26,7 +25,6 @@ class XhsStoreFactory:
|
||||
return store_class()
|
||||
|
||||
|
||||
|
||||
async def update_xhs_note(note_item: Dict):
|
||||
note_id = note_item.get("note_id")
|
||||
user_info = note_item.get("user", {})
|
||||
@@ -117,7 +115,8 @@ async def save_creator(user_id: str, creator: Dict):
|
||||
'follows': follows,
|
||||
'fans': fans,
|
||||
'interaction': interaction,
|
||||
'tag_list': json.dumps({tag.get('tagType'): tag.get('name') for tag in creator.get('tags')}, ensure_ascii=False),
|
||||
'tag_list': json.dumps({tag.get('tagType'): tag.get('name') for tag in creator.get('tags')},
|
||||
ensure_ascii=False),
|
||||
"last_modify_ts": utils.get_current_timestamp(),
|
||||
}
|
||||
utils.logger.info(f"[store.xhs.save_creator] creator:{local_db_item}")
|
||||
|
||||
Reference in New Issue
Block a user