async def after_insert(self, raw_post: Dict, values: SQLValuesToWrite, record: DataRecord): # 添加统计记录 post_stats_new(POST_TYPES.BOARD, record['id']) # 管理日志:新建板块 ManageLog.post_new(self, POST_TYPES.BOARD, record)
async def after_insert(self, values_lst: List[SQLValuesToWrite], records: List[DataRecord]): for record in records: # 添加统计记录 post_stats_new(POST_TYPES.BOARD, record['id']) # 管理日志:新建板块 ManageLog.post_new(self, POST_TYPES.BOARD, record)
async def after_insert(self, raw_post: Dict, values: SQLValuesToWrite, record: DataRecord): # 添加统计记录 post_stats_new(POST_TYPES.WIKI, record['id']) # 添加创建记录 ManageLog.post_new(self, POST_TYPES.WIKI, record) if config.SEARCH_ENABLE: run_in_thread(esdb.es_update_wiki, record['id'])
async def after_insert(self, values_lst: List[SQLValuesToWrite], records: List[DataRecord]): for record in records: # 添加统计记录 post_stats_new(POST_TYPES.WIKI, record['id']) # 添加创建记录 ManageLog.post_new(self, POST_TYPES.WIKI, record) if config.SEARCH_ENABLE: run_in_thread(esdb.es_update_wiki, record['id'])