add ua to contact list
This commit is contained in:
@@ -48,6 +48,10 @@ def read_contacts(file_name) -> list:
|
||||
store = "random"
|
||||
if contact_dict.get('store') is not None:
|
||||
store = contact_dict['store']
|
||||
ua = ""
|
||||
|
||||
if contact_dict.get('ua') is not None:
|
||||
ua = contact_dict['ua']
|
||||
|
||||
contact = ContactPojo(phone_number=contact_dict['phone'],
|
||||
last_name=last_name,
|
||||
@@ -55,6 +59,7 @@ def read_contacts(file_name) -> list:
|
||||
passport_number=contact_dict['passport'],
|
||||
mail=contact_dict['email'], store=store)
|
||||
contact.ip_country = ip_country
|
||||
contact.ua = ua
|
||||
contact_list.append(contact)
|
||||
return contact_list
|
||||
|
||||
|
||||
Reference in New Issue
Block a user