mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-23 03:14:40 +08:00
Update msg.py
This commit is contained in:
parent
8e20452bbb
commit
78b0c19b52
@ -156,7 +156,7 @@ class Msg:
|
|||||||
result = self.cursor.fetchall()
|
result = self.cursor.fetchall()
|
||||||
finally:
|
finally:
|
||||||
lock.release()
|
lock.release()
|
||||||
return transferMessages(result)
|
return result
|
||||||
|
|
||||||
def get_messages_by_keyword(self, username_, keyword, num=5, max_len=10):
|
def get_messages_by_keyword(self, username_, keyword, num=5, max_len=10):
|
||||||
if not self.open_flag:
|
if not self.open_flag:
|
||||||
@ -338,4 +338,4 @@ if __name__ == '__main__':
|
|||||||
if type_ == 49 and sub_type == 57:
|
if type_ == 49 and sub_type == 57:
|
||||||
print(r)
|
print(r)
|
||||||
print(r[-1])
|
print(r[-1])
|
||||||
break
|
break
|
||||||
|
Loading…
Reference in New Issue
Block a user