feat: 更新 flask_app.py 以使用异步方法更新视频统计信息

This commit is contained in:
晓丰 2025-05-23 00:03:04 +08:00
parent 9d1e2033c7
commit c46f4d9b83

View File

@ -204,7 +204,7 @@ def submit():
print(f"收到请求: {v_xid}, {rn}") print(f"收到请求: {v_xid}, {rn}")
headers = gettoken(proxy_code) headers = gettoken(proxy_code)
results = get_videoInfo(v_xid, proxy_code, headers) results = get_videoInfo(v_xid, proxy_code, headers)
DBSA.update_video_stats(data, results) DBSA.update_video_stats_async(data, results)
return jsonify({ return jsonify({
"results": results "results": results
}), 200 }), 200