Skip to content

Commit

Permalink
Merge pull request #382 from brunoamaral/base-commands
Browse files Browse the repository at this point in the history
remove redundant setting of variables
  • Loading branch information
brunoamaral authored Mar 29, 2024
2 parents eec0ffe + 769d913 commit 294817e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,10 @@ def handle(self, *args, **options):
trial.sent_to_admin = True
Trials.objects.bulk_update(trials, ['sent_to_admin'])

def send_simple_message(self, sender='Gregory MS <gregory@mg.' + Site.objects.get_current().domain + '>', to=None,bcc=None,subject='no subject', text=None,html=None, email_mailgun_api_url=settings.EMAIL_MAILGUN_API_URL, email_mailgun_api=settings.EMAIL_MAILGUN_API):
email_mailgun_api_url = settings.EMAIL_MAILGUN_API_URL
email_mailgun_api = settings.EMAIL_MAILGUN_API
def send_simple_message(self, to, bcc=None, subject=None, text=None, html=None,
sender=f'Gregory MS <gregory@mg.{Site.objects.get_current().domain}>',
email_mailgun_api_url=settings.EMAIL_MAILGUN_API_URL,
email_mailgun_api=settings.EMAIL_MAILGUN_API):
print(f"data=sender: {sender}, to: {to}, bcc: {bcc}")
status = requests.post(
email_mailgun_api_url,
Expand Down

0 comments on commit 294817e

Please sign in to comment.