add method to extract all validated contacts of the day
This commit is contained in:
@@ -32,6 +32,8 @@ class ReserveResultPojo:
|
||||
ccid: str = ""
|
||||
source_from: str = config.LOG_SOURCE
|
||||
store_type = 0
|
||||
store = "random"
|
||||
ip_country = "FR"
|
||||
url_validated = None
|
||||
created_at = None
|
||||
validated_at = None
|
||||
@@ -65,15 +67,24 @@ class ReserveResultPojo:
|
||||
lastName = source['lastName']
|
||||
else:
|
||||
lastName = ""
|
||||
|
||||
if 'firstName' in source:
|
||||
firstName = source['firstName']
|
||||
else:
|
||||
firstName = ""
|
||||
if 'store' in source:
|
||||
store = source['store']
|
||||
else:
|
||||
store = "random"
|
||||
if 'ip_country' in source:
|
||||
ip_country = source['ip_country']
|
||||
else:
|
||||
ip_country = "FR"
|
||||
|
||||
result = ReserveResultPojo(type=publish_type, phone=phone,
|
||||
url=url, email=email,
|
||||
firstName=firstName, lastName=lastName)
|
||||
result.store = store
|
||||
result.ip_country = ip_country
|
||||
if 'accepted' in source:
|
||||
accepted = source['accepted']
|
||||
result.accepted = accepted
|
||||
|
||||
Reference in New Issue
Block a user