Commit 77599be1 by ‘chizw’

[+]限制优化

1 parent f6099f6c
...@@ -144,16 +144,12 @@ def select_extract_data(): ...@@ -144,16 +144,12 @@ def select_extract_data():
traceback.print_exc() traceback.print_exc()
if duration != 0: if duration != 0:
length = content / (duration / (60 * 1000)) length = content / (duration / (60 * 1000))
if length > 210: if length > 160:
speed = '急速' speed = '过快'
elif length > 180: elif length > 140:
speed = '快速'
elif length > 150:
speed = '适中' speed = '适中'
elif length > 120:
speed = '缓慢'
else: else:
speed = '极慢' speed = '过慢'
item["speed"] = speed item["speed"] = speed
item.pop("detail_json") item.pop("detail_json")
# item.pop("recording_duration") # item.pop("recording_duration")
...@@ -175,6 +171,6 @@ def select_extract_data(): ...@@ -175,6 +171,6 @@ def select_extract_data():
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172075478615417207538825792.mp3", "东联") # run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172075478615417207538825792.mp3", "东联")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172119302897717211886442290.mp3", "李钰达") # run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_172119302897717211886442290.mp3", "李钰达")
# run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17205900068901720588971648.mp3", "张东华") # run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/merged_17205900068901720588971648.mp3", "张东华")
run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/车辆知识_保险基础知识培训-视频.mp3", "保险基础知识培训") # run("https://glsk-oss.oss-cn-shenzhen.aliyuncs.com/quality/车辆知识_保险基础知识培训-视频.mp3", "保险基础知识培训")
# select_extract_data()
\ No newline at end of file \ No newline at end of file
select_extract_data()
\ No newline at end of file \ No newline at end of file
...@@ -213,9 +213,12 @@ left join ( select ...@@ -213,9 +213,12 @@ left join ( select
and dclgo.status in (4, 6) and upgrade_flag = 'Y' and dclgo.status in (4, 6) and upgrade_flag = 'Y'
group by dclgoc.customer_phone group by dclgoc.customer_phone
order by order_time desc) t4 on rci.phone_number =t4.customer_phone order by order_time desc) t4 on rci.phone_number =t4.customer_phone
where recording_start_time BETWEEN %s and %s where ibr.id in (
and ibr.recording_duration > 60*15 and t3.employee_name in ('黄锦秀','庞丽丽','郑曼如','王希丽','范达华') 38945,38856,38777,38600,38433,38352,38967,38834,38631,38573,38337,37776,38605,38241,38172,38766,38760,38736,35074,34912,33768,35191,35182,35073)
order by t3.employee_name,ibr.recording_start_time desc # recording_start_time BETWEEN %s and %s
# and ibr.recording_duration > 60*15 and t3.employee_name in ('黄锦秀','庞丽丽','郑曼如','王希丽','范达华')
# order by t3.employee_name,ibr.recording_start_time desc
group by ibr.id order by ibr.id
;""" ;"""
) )
return pool.select_all(sql, ('2024-12-16', '2024-12-23')) return pool.select_all(sql, ('2024-12-16', '2024-12-23'))
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!