chore: remove redundant line breaks

This commit is contained in:
leantli 2024-04-12 18:18:01 +08:00
parent ad01dfba95
commit 6cabece01a
3 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -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")

View File

@ -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