chat history support (partial)
This commit is contained in:
parent
31ccd99d0e
commit
159e1f990a
4 changed files with 114 additions and 42 deletions
|
|
@ -113,11 +113,3 @@ class History(object):
|
|||
|
||||
def __del__(self):
|
||||
self._db.close()
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
h = History('test')
|
||||
if not h.friend_exists_in_db('42'):
|
||||
h.add_friend_to_db('42')
|
||||
h.save_messages_to_db('42', [('bugara', 1, 123412413, 1)])
|
||||
h.delete_messages('42')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue