correct email problemes in contact.xlsx file
This commit is contained in:
Binary file not shown.
+2
-1
@@ -29,7 +29,8 @@ class LogSender:
|
|||||||
# get id
|
# get id
|
||||||
self.send_log(result.id, type=LOG_APPOINTMENT_SUCCESS)
|
self.send_log(result.id, type=LOG_APPOINTMENT_SUCCESS)
|
||||||
else:
|
else:
|
||||||
self.send_log(result.message, type=LOG_APPOINTMENT_ERROR)
|
msg = "{}, email: {}".format(result.message, result.email)
|
||||||
|
self.send_log(msg, type=LOG_APPOINTMENT_ERROR)
|
||||||
|
|
||||||
def send_log(self, msg: str, source="Appointment", subject="appointment", type: str = "INFO"):
|
def send_log(self, msg: str, source="Appointment", subject="appointment", type: str = "INFO"):
|
||||||
log_id = "ocid1.log.oc1.eu-frankfurt-1.amaaaaaacvc3jtia5enufv5jxe6binq4ndaty7pt5mk7uidipfd62ynwdhnq"
|
log_id = "ocid1.log.oc1.eu-frankfurt-1.amaaaaaacvc3jtia5enufv5jxe6binq4ndaty7pt5mk7uidipfd62ynwdhnq"
|
||||||
|
|||||||
@@ -121,19 +121,10 @@ def handle_sms(sms):
|
|||||||
is_finished = True
|
is_finished = True
|
||||||
global current_gsm_modem
|
global current_gsm_modem
|
||||||
if current_gsm_modem:
|
if current_gsm_modem:
|
||||||
|
logger.info("will close used modem")
|
||||||
current_gsm_modem.close()
|
current_gsm_modem.close()
|
||||||
|
|
||||||
|
|
||||||
def select_sim_storage(ser) -> bool:
|
|
||||||
# use SIM Card storage
|
|
||||||
cmd_sm = "AT+CPBS=\"SM\"\r"
|
|
||||||
result = send_command(cmd_sm, ser)
|
|
||||||
if "ERROR" in str(result):
|
|
||||||
return False
|
|
||||||
else:
|
|
||||||
return True
|
|
||||||
|
|
||||||
|
|
||||||
def init_modems() -> list:
|
def init_modems() -> list:
|
||||||
modems = []
|
modems = []
|
||||||
for port in get_devices_ports():
|
for port in get_devices_ports():
|
||||||
@@ -176,7 +167,7 @@ def read_all_the_phone_number():
|
|||||||
|
|
||||||
|
|
||||||
def start_book():
|
def start_book():
|
||||||
slot_number = 7
|
slot_number = 1
|
||||||
slot_sum = 29
|
slot_sum = 29
|
||||||
for i in range(slot_number, slot_sum + 1):
|
for i in range(slot_number, slot_sum + 1):
|
||||||
card_pool.reset()
|
card_pool.reset()
|
||||||
|
|||||||
Reference in New Issue
Block a user