修复合并数据库后无法播放语音
This commit is contained in:
parent
f839cc06e9
commit
8015d0d6b2
@ -200,7 +200,7 @@ def read_audio(MsgSvrID, is_play=False, is_wave=False, DB_PATH: str = "", rate=2
|
|||||||
|
|
||||||
DB = sqlite3.connect(DB_PATH)
|
DB = sqlite3.connect(DB_PATH)
|
||||||
cursor = DB.cursor()
|
cursor = DB.cursor()
|
||||||
sql = "select Buf from Media where Reserved0='{}'".format(MsgSvrID)
|
sql = "select Buf from Media where Reserved0={}".format(MsgSvrID)
|
||||||
DBdata = cursor.execute(sql).fetchall()
|
DBdata = cursor.execute(sql).fetchall()
|
||||||
|
|
||||||
if len(DBdata) == 0:
|
if len(DBdata) == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user