uploader_2.py 533 B

1234567891011121314151617
  1. def upload_by_mail(pictures, mail_list):
  2. """Gather mail list, send task to upload."""
  3. addresses = []
  4. print(mail_list)
  5. # Mail can be activated but not mapped to this button
  6. if len(mail_list) > 0:
  7. print("mail list has mails in it")
  8. for mail_num in mail_list:
  9. addresses.append(get_key(mail_num, "address"))
  10. print("after action")
  11. send_mail(addresses, pictures)
  12. else:
  13. print("Mail activated but no mails choosen on this button")
  14. print("after mail upload")