valid the links with paris ip

This commit is contained in:
2024-12-14 11:51:05 +01:00
parent 4b17fa27c8
commit bda446f2d9
7 changed files with 134 additions and 53 deletions
+6
View File
@@ -13,6 +13,7 @@ class ContactPojo:
store: str
note: str
ua: str
serial: str
def __init__(self, phone_number: str, passport_number: str, last_name: str, first_name: str, mail: str,
ccid: str = "",
@@ -38,6 +39,7 @@ class ContactPojo:
u'store': self.store,
u'ccid': self.ccid,
u'position': self.position,
u'serial': self.serial,
u'current_ip': self.current_ip,
u'ua': self.ua
}
@@ -52,9 +54,13 @@ class ContactPojo:
last_name = source['last_name']
first_name = source['first_name']
ip_country = "FR"
if source.get('ip_country'):
ip_country = source['ip_country']
result = ContactPojo(phone_number=phone, passport_number=passport, mail=email,
last_name=last_name, first_name=first_name)
result.ip_country = ip_country
if source.get('serial'):
serial = source['serial']
result.serial = serial
return result