add serial
This commit is contained in:
@@ -15,6 +15,7 @@ class ContactPojo:
|
|||||||
ip_address: str
|
ip_address: str
|
||||||
isp: str = None
|
isp: str = None
|
||||||
ua: str = ""
|
ua: str = ""
|
||||||
|
serial: str = ""
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return "phone:{}, passport:{}, last_name:{}, first_name:{}, mail:{}, store:{}, ip_country:{},isp:{}".format(
|
return "phone:{}, passport:{}, last_name:{}, first_name:{}, mail:{}, store:{}, ip_country:{},isp:{}".format(
|
||||||
@@ -31,7 +32,9 @@ class ContactPojo:
|
|||||||
self.store = store
|
self.store = store
|
||||||
self.ip_country = ip_country
|
self.ip_country = ip_country
|
||||||
self.ip_address = ""
|
self.ip_address = ""
|
||||||
|
self.current_ip = ""
|
||||||
self.ua = ""
|
self.ua = ""
|
||||||
|
self.serial = ""
|
||||||
|
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return hash(self.mail)
|
return hash(self.mail)
|
||||||
@@ -45,6 +48,7 @@ class ContactPojo:
|
|||||||
u'mail': self.mail,
|
u'mail': self.mail,
|
||||||
u'store': self.store,
|
u'store': self.store,
|
||||||
u'ip_country': self.ip_country,
|
u'ip_country': self.ip_country,
|
||||||
|
u'current_ip': self.current_ip,
|
||||||
u'ua': self.ua
|
u'ua': self.ua
|
||||||
}
|
}
|
||||||
return dest
|
return dest
|
||||||
@@ -74,5 +78,7 @@ class ContactPojo:
|
|||||||
result = ContactPojo(phone_number=phone, passport_number=passport, mail=email,
|
result = ContactPojo(phone_number=phone, passport_number=passport, mail=email,
|
||||||
last_name=last_name, first_name=first_name, store=store)
|
last_name=last_name, first_name=first_name, store=store)
|
||||||
result.ip_country = ip_country
|
result.ip_country = ip_country
|
||||||
|
if source.get('current_ip'):
|
||||||
|
result.current_ip = source['current_ip']
|
||||||
result.ua = ua
|
result.ua = ua
|
||||||
return result
|
return result
|
||||||
|
|||||||
Reference in New Issue
Block a user