Update msg.py

This commit is contained in:
SiYuan 2023-12-12 10:38:43 +08:00 committed by GitHub
parent 8e20452bbb
commit 78b0c19b52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -156,7 +156,7 @@ class Msg:
result = self.cursor.fetchall()
finally:
lock.release()
return transferMessages(result)
return result
def get_messages_by_keyword(self, username_, keyword, num=5, max_len=10):
if not self.open_flag:
@ -338,4 +338,4 @@ if __name__ == '__main__':
if type_ == 49 and sub_type == 57:
print(r)
print(r[-1])
break
break