forked from 3wordchant/capsul-flask
fix defaults for running locally and make email server not required.
This commit is contained in:
@ -243,6 +243,7 @@ def notify_users_about_account_balance():
|
||||
Message(
|
||||
get_subject(pluralize_capsul),
|
||||
body=get_body(current_app.config['BASE_URL'], pluralize_capsul),
|
||||
sender=current_app.config["MAIL_DEFAULT_SENDER"],
|
||||
recipients=[account['email']]
|
||||
)
|
||||
)
|
||||
@ -288,6 +289,7 @@ def ensure_vms_and_db_are_synced():
|
||||
current_app.config["FLASK_MAIL_INSTANCE"].send(
|
||||
Message(
|
||||
"Capsul Consistency Check Failed",
|
||||
sender=current_app.config["MAIL_DEFAULT_SENDER"],
|
||||
body="\n".join(errors),
|
||||
recipients=email_addresses
|
||||
)
|
||||
|
Reference in New Issue
Block a user