Commit b3f403a9 authored by Fabian Gabel's avatar Fabian Gabel
Browse files

fix printing database entry with .join

https://stackoverflow.com/q/19641579/2457256
parent b930bfcd
......@@ -60,7 +60,7 @@ def sendLogin(mydb,lang='en'):
# send mails
for res in myresult:
with open(template_file) as mail_file:
print('Mail for Database Entry: ' + res)
print('Mail for Database Entry: ' + ''.join(res))
kerberos=res[0]
text = mail_file.read().format(*res[1:])
print(subject)
......@@ -109,7 +109,7 @@ def sendNotification(mydb,template_file,subject,fields='student_id',user_idstatu
# send mails
for res in myresult:
with open(template_file) as mail_file:
print('Mail for Database Entry: ' + res)
print('Mail for Database Entry: ' + ''.join(res))
kerberos=res[0]
text = mail_file.read().format(*res[1:])
print(subject)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment