def add(self, recipient_emails): '''Adds all the recipient in the given list to the database. Arguments: recipient_emails {list} -- The list of recipient emails. ''' self.__logger.info(f'Adding {len(recipient_emails)} recipients.') for email in recipient_emails: Recipient.create( email=email.strip(), date_added=datetime.today().strftime('%Y-%m-%d') )