remove unused codes
This commit is contained in:
+3
-4
@@ -10,9 +10,8 @@ import definitions
|
||||
from logs.AppLogging import init_logger
|
||||
from pojo import ReserveResultPojo
|
||||
from pojo.ReserveResultPojo import PublishType
|
||||
|
||||
# Log subjects
|
||||
from pojo.serial_modem import SerialModem
|
||||
from pojo.contact_pojo import ContactPojo
|
||||
|
||||
LOG_SUBJECT_EVENT = "EVENT"
|
||||
LOG_SUBJECT_SMS = "SMS"
|
||||
@@ -102,8 +101,8 @@ class LogSender:
|
||||
msg = "from:{}, sms:{}, ccid:{}".format(phone, sms_text, ccid)
|
||||
self.send_log(msg=msg, subject=LOG_SUBJECT_SMS, type=TYPE_SMS_RECEIVED)
|
||||
|
||||
def send_timeout_log(self, serial_modem: SerialModem):
|
||||
msg = "phone:{}, ccid:{}".format(serial_modem.phone_number, serial_modem.ccid)
|
||||
def send_timeout_log(self, contact: ContactPojo):
|
||||
msg = "phone:{}, mail:{}".format(contact.phone, contact.mail)
|
||||
self.send_log(msg, type=LOG_APPOINTMENT_TIMEOUT)
|
||||
|
||||
def send_contact_not_found(self, msg: str):
|
||||
|
||||
Reference in New Issue
Block a user