修复合并后的聊天数据异常问题

This commit is contained in:
shuaikangzhou 2023-12-07 00:44:51 +08:00
parent db0277fbd7
commit 2efc52840a
2 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ def merge_databases(source_paths, target_path):
if not os.path.exists(source_path):
break
db = sqlite3.connect(source_path)
db.text_factory = bytes
# db.text_factory = bytes
cursor = db.cursor()
sql = '''
SELECT TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent,BytesExtra

View File

@ -213,4 +213,4 @@ if __name__ == '__main__':
pprint(msg.get_message_by_num('wxid_0o18ef858vnu22', local_id))
print(msg.get_messages_by_keyword(wxid, '干嘛'))
pprint(msg.get_messages_by_keyword(wxid, '干嘛')[0])
print(msg.get_first_time_of_message('wxid_0o18ef858vnu22'))
print(msg.get_first_time_of_message('wxid_fervbwign7m822'))