group message with proper handling of user name

This commit is contained in:
Yuxin Wu
2016-01-20 14:12:14 -05:00
parent 683bdc30d0
commit 28c7d3d599
8 changed files with 71 additions and 60 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ if not os.path.isdir(output_dir):
parser = WeChatDBParser(db_file)
for name, msgs in parser.msgs_by_talker.iteritems():
for name, msgs in parser.msgs_by_chat.iteritems():
print u"Writing msgs for {}".format(name)
safe_name = safe_filename(name)
with open(os.path.join(output_dir, safe_name + '.txt'), 'w') as f: