html逻辑优化
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
import sys
|
||||
import json
|
||||
import time
|
||||
import subprocess
|
||||
import math
|
||||
import random
|
||||
import sqlite3
|
||||
@@ -216,7 +217,7 @@ def fetch_receipt_details_incremental():
|
||||
total_inserted += 1
|
||||
|
||||
conn.commit()
|
||||
log("OK", f"第 {current_page} 页处理完毕,成功入库 {inserted_this_page} 条新数据。")
|
||||
log("OK", f"第 {current_page} 页处理完毕,成功截获 {inserted_this_page} 条数据并存入数据库。")
|
||||
|
||||
# 还有下一页则继续点击
|
||||
if current_page < end_page:
|
||||
@@ -250,8 +251,8 @@ def fetch_receipt_details_incremental():
|
||||
|
||||
current_page += 1
|
||||
|
||||
log("OK", f"🎉 增量同步大功告成!总计入库 {total_inserted} 条全新数据!")
|
||||
|
||||
log("OK", f"🎉 增量同步大功告成!总计向数据库执行了 {total_inserted} 次插入/更新操作!")
|
||||
|
||||
except Exception as e:
|
||||
log("ERR", f"发生全局异常: {e}")
|
||||
finally:
|
||||
|
||||
Reference in New Issue
Block a user