various bug fixes

This commit is contained in:
ppwwyyxx
2014-12-25 10:04:54 +08:00
parent 8c17349a2c
commit 9cb981749a
7 changed files with 100 additions and 15 deletions
+3 -3
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python2
# -*- coding: UTF-8 -*-
# File: parser.py
# Date: Mon Dec 22 22:14:18 2014 +0800
# Date: Thu Dec 25 00:34:35 2014 +0800
# Author: Yuxin Wu <[email protected]>
import sqlite3
@@ -32,7 +32,7 @@ class WeChatDBParser(object):
self.msgs_by_talker = defaultdict(list)
self.emojis = {}
self.internal_emojis = {}
self.parse()
self._parse()
def _parse_contact(self):
contacts = self.cc.execute(
@@ -105,7 +105,7 @@ SELECT {} FROM message
self.internal_emojis[md5] = name
def parse(self):
def _parse(self):
self._parse_userinfo()
self._parse_contact()
self._parse_msg()