mirror of
https://github.com/lucaspalomodevelop/Party.git
synced 2026-03-13 00:07:21 +00:00
sync
This commit is contained in:
parent
2af13b980f
commit
86c6501305
@ -24,8 +24,6 @@ class Chat:
|
||||
def insertMessage(self, content: str, author: str, timestamp: str):
|
||||
if not (self.initialized): self.init()
|
||||
message = self.convertToMessage(content, author, timestamp)
|
||||
print(message)
|
||||
print(self.collection)
|
||||
self.collection.insert_one(message)
|
||||
print('inserted message')
|
||||
|
||||
@ -35,7 +33,6 @@ class Chat:
|
||||
.skip(skip)
|
||||
.limit(count)
|
||||
.sort('timestamp', 1))
|
||||
print(messages)
|
||||
|
||||
return messages
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user