group message with proper handling of user name

This commit is contained in:
Yuxin Wu
2016-01-20 14:12:14 -05:00
parent 7510fba1c1
commit 77191e1885
9 changed files with 71 additions and 62 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: plot_num_msg_by_time.py
# File: plot-num-msg-by-time.py
# Date: Wed Mar 25 17:44:39 2015 +0800
# Author: Yuxin Wu <[email protected]>
@@ -20,7 +20,7 @@ name = ensure_unicode(sys.argv[2])
every_k_days = 2
parser = WeChatDBParser(db_file)
msgs = parser.msgs_by_talker[name]
msgs = parser.msgs_by_chat[name]
times = [x.createTime for x in msgs]
start_time = times[0]
diffs = [(x - start_time).days for x in times]