调整数据库表名,增加催青阶段分析演示模块

This commit is contained in:
BBIT-Kai
2026-01-04 16:06:13 +08:00
parent 209d087fa5
commit e2982b141d
16 changed files with 589 additions and 34 deletions
+4 -4
View File
@@ -17,7 +17,7 @@ def get_sca_video_list(name, page=1, page_size=10):
cursor.execute(
"""
SELECT COUNT(*)
FROM sca_videos
FROM video_sca
WHERE (%s = '' OR name LIKE '%%' || %s || '%%')
""",
(name, name),
@@ -30,7 +30,7 @@ def get_sca_video_list(name, page=1, page_size=10):
SELECT id, name, raw_object_name, ai_object_name, duration, size, video_codec, audio_codec,
overall_bit_rate, resolution, sc_analysis_time, sc_analysis_total_count, sc_analysis_max_count,
sc_analysis_primary_type, sc_analysis_secondary_type, other_info, created_at
FROM sca_videos
FROM video_sca
WHERE (%s = '' OR name LIKE '%%' || %s || '%%')
ORDER BY created_at DESC
LIMIT %s OFFSET %s
@@ -67,7 +67,7 @@ def get_sca_video_list(name, page=1, page_size=10):
return total, result
def get_sca_video_details(v_id):
def get_video_sca_details(v_id):
"""
获取指定视频的分析明细列表
"""
@@ -76,7 +76,7 @@ def get_sca_video_details(v_id):
cursor.execute(
"""
SELECT id, v_id, time_stamp, other_info
FROM sca_video_details
FROM video_sca_details
WHERE v_id = %s
ORDER BY time_stamp ASC
""",