force to remove .0 when excel format is not correct

This commit is contained in:
2022-08-10 22:01:36 +02:00
parent f780834d88
commit 0401f7ac1d
3 changed files with 4 additions and 3 deletions
+2 -1
View File
@@ -52,9 +52,10 @@ class CommandorPage:
def __init__(self, contact: ContactPojo, store_type=0, proxy_type=ProxyType.BRIGHT_DATA,
mode: ModeEnum = ModeEnum.MANUAL, headless=False):
self.otp_value = None
self.logger = logging.getLogger("约会页面:" + str(contact.phone))
self.is_finished = False
self.contact = contact
self.contact.phone = self.contact.phone.replace(".0", "") # remove the .0 if the Excel format is not correct
self.logger = logging.getLogger("约会页面:" + str(self.contact.phone))
self.proxy_type = proxy_type
self.is_event_sent = False
self.is_captcha_in_error = False