update contact list

This commit is contained in:
2022-03-02 10:38:40 +01:00
parent 4563929881
commit 4333aa5977
4 changed files with 19 additions and 9 deletions
+6 -2
View File
@@ -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