Skip to content

Commit e73d266

Browse files
the-veloperin-void
authored andcommitted
remove id from parse
1 parent d53f86d commit e73d266

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

smsapi/sms/model.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,17 +30,15 @@ def parse(cls, json_response, model):
3030

3131
class SmsMFASendResult(ResultCollection):
3232

33-
def __init__(self, count, results, id, code, phone_number, from_):
33+
def __init__(self, count, results, code, phone_number, from_):
3434
super(SmsMFASendResult, self).__init__(count, results)
3535

36-
self.id = id
3736
self.code = code
3837
self.phone_number = phone_number
3938
self.from_ = from_
4039

4140
@classmethod
4241
def parse(cls, json_response, model):
43-
id = json_response.get('id')
4442
code = json_response.get('code')
4543
phone_number = json_response.get('phone_number')
4644
from_ = json_response.get('from')
@@ -53,4 +51,4 @@ def parse(cls, json_response, model):
5351
m = model.from_dict(sms)
5452
collection.append(m)
5553

56-
return cls(1, collection, id=id, code=code, phone_number=phone_number, from_=from_)
54+
return cls(1, collection, code=code, phone_number=phone_number, from_=from_)

0 commit comments

Comments
 (0)