Spaces:
Sleeping
Sleeping
Update models/models.py
Browse files- models/models.py +2 -2
models/models.py
CHANGED
@@ -13,7 +13,7 @@ class Message:
|
|
13 |
self.body = body
|
14 |
self.attachments = attachments
|
15 |
self.company = company
|
16 |
-
self.
|
17 |
self.attachment_len = attachment_len
|
18 |
|
19 |
def to_json(self):
|
@@ -22,6 +22,6 @@ class Message:
|
|
22 |
"body": self.body,
|
23 |
"attachments": [attachment.__dict__ for attachment in self.attachments] if self.attachments else None,
|
24 |
"company": self.company,
|
25 |
-
"
|
26 |
"attachemnt_len" : self.attachment_len
|
27 |
}
|
|
|
13 |
self.body = body
|
14 |
self.attachments = attachments
|
15 |
self.company = company
|
16 |
+
self.body_len = body_len
|
17 |
self.attachment_len = attachment_len
|
18 |
|
19 |
def to_json(self):
|
|
|
22 |
"body": self.body,
|
23 |
"attachments": [attachment.__dict__ for attachment in self.attachments] if self.attachments else None,
|
24 |
"company": self.company,
|
25 |
+
"body_len" : self.body_len,
|
26 |
"attachemnt_len" : self.attachment_len
|
27 |
}
|