chore: remove redundant line breaks
This commit is contained in:
parent
ad01dfba95
commit
6cabece01a
|
@ -56,7 +56,6 @@ class AbstractStore(ABC):
|
|||
async def store_creator(self, creator: Dict):
|
||||
pass
|
||||
|
||||
|
||||
class AbstractStoreImage(ABC):
|
||||
#TODO: support all platform
|
||||
# only weibo is supported
|
||||
|
|
|
@ -142,7 +142,7 @@ class XhsDbStoreImplement(AbstractStore):
|
|||
await add_new_creator(creator)
|
||||
else:
|
||||
await update_creator_by_user_id(user_id, creator)
|
||||
|
||||
|
||||
|
||||
class XhsJsonStoreImplement(AbstractStore):
|
||||
json_store_path: str = "data/xhs"
|
||||
|
@ -213,5 +213,4 @@ class XhsJsonStoreImplement(AbstractStore):
|
|||
Returns:
|
||||
|
||||
"""
|
||||
await self.save_data_to_json(creator, "creator")
|
||||
|
||||
await self.save_data_to_json(creator, "creator")
|
|
@ -145,4 +145,4 @@ async def update_creator_by_user_id(user_id: str, creator_item: Dict) -> int:
|
|||
"""
|
||||
async_db_conn: AsyncMysqlDB = media_crawler_db_var.get()
|
||||
effect_row: int = await async_db_conn.update_table("xhs_creator", creator_item, "user_id", user_id)
|
||||
return effect_row
|
||||
return effect_row
|
Loading…
Reference in New Issue