add ua to db
This commit is contained in:
@@ -35,6 +35,7 @@ class ReserveResultPojo:
|
||||
created_at = None
|
||||
validated_at = None
|
||||
proxy: str = None
|
||||
ua: str = None
|
||||
|
||||
@staticmethod
|
||||
def from_firestore_dict(source):
|
||||
@@ -129,6 +130,7 @@ class ReserveResultPojo:
|
||||
u'accepted': self.accepted,
|
||||
u'url_validated': self.url_validated,
|
||||
u'proxy': self.proxy,
|
||||
u'ua': self.ua,
|
||||
}
|
||||
|
||||
return dest
|
||||
|
||||
@@ -12,6 +12,7 @@ class ContactPojo:
|
||||
position: int
|
||||
store: str
|
||||
note: str
|
||||
ua: str
|
||||
|
||||
def __init__(self, phone_number: str, passport_number: str, last_name: str, first_name: str, mail: str,
|
||||
ccid: str = "",
|
||||
@@ -24,6 +25,7 @@ class ContactPojo:
|
||||
self.mail = mail
|
||||
self.position = position
|
||||
self.note = ""
|
||||
self.ua = ""
|
||||
|
||||
def to_firestore_dict(self):
|
||||
dest = {
|
||||
@@ -34,7 +36,8 @@ class ContactPojo:
|
||||
u'mail': self.mail,
|
||||
u'store': self.store,
|
||||
u'ccid': self.ccid,
|
||||
u'position': self.position
|
||||
u'position': self.position,
|
||||
u'ua': self.ua
|
||||
}
|
||||
|
||||
return dest
|
||||
|
||||
Reference in New Issue
Block a user