fix: 修复报告视频列表检查逻辑以提高代码可读性

This commit is contained in:
晓丰 2025-06-04 20:58:50 +08:00
parent fc29bddab2
commit f3b2102d62

View File

@ -9,7 +9,7 @@ d = DailymotionClient()
while True:
lis = db.get_report_video()
if lis.count() == 0:
if len(lis) == 0:
time.sleep(20)
for li in lis:
try: