changed setting to use bool instead of int
This commit is contained in:
@@ -69,7 +69,7 @@ class Mail_Dialog(QtWidgets.QDialog, Ui_Dialog):
|
||||
# self.data = data["general"]
|
||||
|
||||
def determine_signature(self):
|
||||
if config.mail.signature == None:
|
||||
if config.mail.signature is None:
|
||||
return """Mit freundlichen Grüßen
|
||||
Ihr Semesterapparatsteam
|
||||
Mail: semesterapparate@ph-freiburg.de
|
||||
@@ -151,7 +151,7 @@ Tel.: 0761/682-778"""
|
||||
server = smtplib.SMTP_SSL(smtp_server, port)
|
||||
# server.starttls()
|
||||
# server.auth(mechanism="PLAIN")
|
||||
if config["mail"]["use_user_name"] == 1:
|
||||
if config["mail"]["use_user_name"] is True:
|
||||
print(config["mail"]["user_name"])
|
||||
server.login(config["mail"]["user_name"], password)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user