update contact list
This commit is contained in:
+6
-2
@@ -18,8 +18,12 @@ class SimInfoPojo:
|
||||
def from_firestore_dict(source):
|
||||
phone = source['phone']
|
||||
ccid = source['ccid']
|
||||
update_at = source['update_at']
|
||||
position = source['position']
|
||||
update_at = None
|
||||
if 'update_at' in source:
|
||||
update_at = source['update_at']
|
||||
position = None
|
||||
if 'position' in source:
|
||||
position = source['position']
|
||||
result = SimInfoPojo(phone=phone, ccid=ccid, update_at=update_at, position=position)
|
||||
result.id = id
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user