Explorar o código

default mentor_month

vnc-console hai 1 ano
pai
achega
3b58576390
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      mentor_mailer.py

+ 4 - 4
mentor_mailer.py

@@ -50,7 +50,7 @@ office = list(mentor.filtered_firmlist(headers=head, ban=exclude))  # generator
 yag = yagmail.SMTP('claudia.conta.ab@gmail.com', oauth2_file='~/oauth2_creds.json')
 month_ = M_mailer.mentor_date
 mailer = M_mailer()
-taxes = mailer.tax_mailer(office, m_list, mentor, yag, send=False)
+taxes = mailer.tax_mailer(office, m_list, mentor, yag, month_, send=False)
 sms = Smslink('A297457A64817C11', 'U7BYbyXCot2I5hvR')
 # resp = sms.send()
 # print(resp.text)
@@ -61,6 +61,6 @@ for company, data in m_list.items():
             # print(repr(tax))
             sms.message = repr(tax)
             sms.to = data['phone']
-            # print(sms.to, '\n', sms.message)
-            resp = sms.send()
-            print(resp.text)
+            print(sms.to, '\n', sms.message)
+            # resp = sms.send()
+            # print(resp.text)