Omkar008 commited on
Commit
3d9f63c
1 Parent(s): 0d17946

Update models/models.py

Browse files
Files changed (1) hide show
  1. 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.document_len = document_len
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
- "document_len" : self.document_len,
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
  }