Revision 86da41f0

b/flowspec/views.py
307 307

  
308 308

  
309 309
def get_peer_techc_mails(user):
310
    user_mail = user.email
310
    mail = []
311
    additional_mail = []
312
    techmails_list = []
313
    user_mail = "%s" %user.email
314
    user_mail = user_mail.split(';')
311 315
    techmails = user.get_profile().peer.techc()
312
    additional_mail = "%s;%s" %(settings.HELPDESK_MAIL,settings.NOC_MAIL) 
313 316
    if techmails:
314
        mail = "%s;%s" %(techmails, additional_mail)
315
    else:
316
        mail = additional_mail
317
    mail = "%s;%s" %(user_mail, mail)
318
    mail =  mail.split(';')
317
        techmails_list = techmails.split(';')
318
    if settings.NOTIFY_ADMIN_MAILS:
319
        additional_mail = settings.NOTIFY_ADMIN_MAILS
320
    mail.extend(user_mail)
321
    mail.extend(additional_mail)
322
    mail.extend(techmails_list)
319 323
    return mail

Also available in: Unified diff