diff --git a/src/TsvAccessModule.py b/src/TsvAccessModule.py index 3749407..4d56847 100644 --- a/src/TsvAccessModule.py +++ b/src/TsvAccessModule.py @@ -107,13 +107,18 @@ def verifyAccess(self, rfid): if rfid: if rfid in self.eastereggs: Log.info("Master check %s",rfid) - if self.ledCounter: - self.ledCounter.text("CHEF") + if self.ledCounter: + self.ledCounter.text("CHEF") + Log.info("Displayed CHEF") + Log.info("Test connection") self.db.ensureConnection() if self.db.isConnected(): + Log.info("Test connection OK") self.gate.welcome1() else: - self.gate.signalAlarm() + self.gate.signalAlarm() + Log.warning("Test connection FAILS") + Log.info("Master check done") return #rfid & paysection must fit ->if section in PREPAID-> decrease count ps = Konfig.asDBString(self.configData.allPaySections()) diff --git a/src/test/Scrap.py b/src/test/Scrap.py index ff9e2f0..b9b5fcd 100644 --- a/src/test/Scrap.py +++ b/src/test/Scrap.py @@ -426,19 +426,19 @@ def nextDay(): def sendEmail(): port = 587 # For starttls - smtp_server = "w00d4ed3.kasserver.com" - password = "TSV1847#MS" + smtp_server = "myServer" + password = "mypwd" msg = EmailMessage() msg['Subject'] = "Sauna Abo" - msg['From'] = "it@tsv-weilheim.com" - msg['To'] = "mathias.wegmann@tsv-weilheim.com" + msg['From'] = "sender" + msg['To'] = "receip" msg.set_content("Mitglied %s hat 10 Sauna Punkte gekauft"%("Hugo")) context = ssl.create_default_context() with smtplib.SMTP(smtp_server, port) as server: server.starttls(context=context) - server.login("it@tsv-weilheim.com", password) + server.login("sender", password) server.send_message(msg)