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