mirror of
https://github.com/rachelos/we-mp-rss.git
synced 2026-09-01 15:33:05 +08:00
1.4.4 修复多线程并发导致无法更新数据库BUG
This commit is contained in:
@@ -5,7 +5,7 @@ from time import sleep
|
||||
from core.print import print_success,print_error
|
||||
import random
|
||||
from driver.wxarticle import Web
|
||||
DB=db.DB()
|
||||
DB=db.Db()
|
||||
def fetch_articles_without_content():
|
||||
"""
|
||||
查询content为空的文章,调用微信内容提取方法获取内容并更新数据库
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
from core.models.article import Article
|
||||
from sqlalchemy import func
|
||||
import core.db as db
|
||||
DB=db.DB()
|
||||
DB=db.Db()
|
||||
def clean_duplicate_articles():
|
||||
"""
|
||||
清理重复的文章
|
||||
|
||||
Reference in New Issue
Block a user