mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-23 03:22:17 +08:00
修复合并后的聊天数据异常问题
This commit is contained in:
parent
db0277fbd7
commit
2efc52840a
@ -13,7 +13,7 @@ def merge_databases(source_paths, target_path):
|
|||||||
if not os.path.exists(source_path):
|
if not os.path.exists(source_path):
|
||||||
break
|
break
|
||||||
db = sqlite3.connect(source_path)
|
db = sqlite3.connect(source_path)
|
||||||
db.text_factory = bytes
|
# db.text_factory = bytes
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
sql = '''
|
sql = '''
|
||||||
SELECT TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent,BytesExtra
|
SELECT TalkerId,MsgsvrID,Type,SubType,IsSender,CreateTime,Sequence,StrTalker,StrContent,DisplayContent,BytesExtra
|
||||||
|
@ -213,4 +213,4 @@ if __name__ == '__main__':
|
|||||||
pprint(msg.get_message_by_num('wxid_0o18ef858vnu22', local_id))
|
pprint(msg.get_message_by_num('wxid_0o18ef858vnu22', local_id))
|
||||||
print(msg.get_messages_by_keyword(wxid, '干嘛'))
|
print(msg.get_messages_by_keyword(wxid, '干嘛'))
|
||||||
pprint(msg.get_messages_by_keyword(wxid, '干嘛')[0])
|
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'))
|
||||||
|
Loading…
Reference in New Issue
Block a user