MSG数量超过10个无法获取最新数据的bug
This commit is contained in:
parent
1f2a5b309d
commit
e7fa7a31e8
@ -324,12 +324,12 @@ def get_real_time_msg():
|
||||
|
||||
if not media_paths[0] or not msg_paths[0] or not micro_paths[0]:
|
||||
return ReJson(1001, body="media_paths or msg_paths is required")
|
||||
media_paths = media_paths[1]
|
||||
media_paths.sort()
|
||||
media_paths = media_paths[1] # MediaMSG9.db MediaMSG10.db
|
||||
media_paths.sort(key=lambda x: int(re.findall(r"\d+", x)[-1]))
|
||||
msg_paths = msg_paths[1]
|
||||
msg_paths.sort()
|
||||
msg_paths.sort(key=lambda x: int(re.findall(r"\d+", x)[-1]))
|
||||
micro_paths = micro_paths[1]
|
||||
micro_paths.sort()
|
||||
micro_paths.sort(key=lambda x: int(re.findall(r"\d+", x)[-1]))
|
||||
# for i in media_paths:
|
||||
# print(i)
|
||||
# merge_real_time_db(key=key, db_path=i, merge_path=save_media_path)
|
||||
|
Loading…
Reference in New Issue
Block a user