add method to extract all validated contacts of the day

This commit is contained in:
2024-02-01 22:44:34 +01:00
parent 95446596c8
commit 760fbe4a97
+12 -1
View File
@@ -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