correct email problemes in contact.xlsx file

This commit is contained in:
2022-03-03 19:33:18 +01:00
parent 8b00931169
commit 679152ddb3
3 changed files with 4 additions and 12 deletions
BIN
View File
Binary file not shown.
+2 -1
View File
@@ -29,7 +29,8 @@ class LogSender:
# get id
self.send_log(result.id, type=LOG_APPOINTMENT_SUCCESS)
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"):
log_id = "ocid1.log.oc1.eu-frankfurt-1.amaaaaaacvc3jtia5enufv5jxe6binq4ndaty7pt5mk7uidipfd62ynwdhnq"
+2 -11
View File
@@ -121,19 +121,10 @@ def handle_sms(sms):
is_finished = True
global current_gsm_modem
if current_gsm_modem:
logger.info("will close used modem")
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:
modems = []
for port in get_devices_ports():
@@ -176,7 +167,7 @@ def read_all_the_phone_number():
def start_book():
slot_number = 7
slot_number = 1
slot_sum = 29
for i in range(slot_number, slot_sum + 1):
card_pool.reset()