1.4.4 修复多线程并发导致无法更新数据库BUG

This commit is contained in:
t@123654
2025-08-01 10:39:03 +08:00
parent 785c7eb104
commit 02b5946e2d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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():
"""
清理重复的文章