示例#1
0
def do_clean_image_info_by_retention(ctx: ActorContext):
    num_rows = ImageInfo.delete_by_retention()
    LOG.info('delete {} outdated imageinfos'.format(num_rows))
示例#2
0
文件: rss.py 项目: lightcax/rssant
def do_clean_image_info_by_retention(ctx: ActorContext):
    if not CONFIG.detect_story_image_enable:
        return
    num_rows = ImageInfo.delete_by_retention()
    LOG.info('delete {} outdated imageinfos'.format(num_rows))