|
@@ -57,7 +57,7 @@ class M_mailer(object):
|
|
|
print(f'period should be "{M_mailer.date}"', end='\n' * 2)
|
|
|
taxes = []
|
|
|
for company in mentor_list:
|
|
|
- for name, data in mail_dict.items():
|
|
|
+ for name, contact in mail_dict.items():
|
|
|
# print(company[10].split(sep=',')[1].split(sep=';'))
|
|
|
condition = name == company[0]
|
|
|
if condition:
|
|
@@ -106,5 +106,5 @@ class M_mailer(object):
|
|
|
return_=an_inc, result=result, tax_type=tax_type, period=M_mailer.mentor_date)
|
|
|
taxes.append(tax)
|
|
|
if send:
|
|
|
- yag.send(to=data['mail'], subject='Great!', contents=body)
|
|
|
+ yag.send(to=contact['mail'], subject='Great!', contents=body)
|
|
|
return taxes
|