调整缓存数据生成脚本

This commit is contained in:
pengtao 2019-09-29 11:53:04 +08:00
parent a391098f32
commit 2dc7e8455d

View File

@ -92,6 +92,7 @@ def produce_task():
data = mydb.query(get_data_sql)
if data:
print(f"get {data}")
for line in data:
if line:
try:
@ -120,6 +121,7 @@ def produce_task():
log.error("split data failed", exc_info=True)
# 检查ID是否存在播放列表中以及播放次数是否完毕
if all:
print(f"all={all}")
for line in all:
if line:
try: