diff options
| author | Magnus Hagander | 2019-07-09 08:59:13 +0000 |
|---|---|---|
| committer | Magnus Hagander | 2019-07-09 09:00:30 +0000 |
| commit | 432b9357447d970791af020fa3b19594a76fc2f7 (patch) | |
| tree | d731ca720abd3052a1eeba43658063491bba7895 /postgresqleu/transferwise | |
| parent | c0f7219b0127122fbf83f3771ade85408d386e66 (diff) | |
Remove TREASURER_EMAIL references from code, leaving in templates
TREASURER_EMAIL is supposed to be used in templates, but actively by the
code, but usage in the wrong way had snuck in. Remove that, and to deal
with that add a field to TransferWise configuration for
notification_receiver.
While at it, put a comment in the config file explaining what it's for.
Diffstat (limited to 'postgresqleu/transferwise')
| -rw-r--r-- | postgresqleu/transferwise/management/commands/transferwise_verify_balance.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/postgresqleu/transferwise/management/commands/transferwise_verify_balance.py b/postgresqleu/transferwise/management/commands/transferwise_verify_balance.py index 0832c215..b60481e0 100644 --- a/postgresqleu/transferwise/management/commands/transferwise_verify_balance.py +++ b/postgresqleu/transferwise/management/commands/transferwise_verify_balance.py @@ -59,7 +59,7 @@ class Command(BaseCommand): if accounting_balance + pending != tw_balance: send_simple_mail(settings.INVOICE_SENDER_EMAIL, - settings.TREASURER_EMAIL, + pm.config('notification_receiver'), 'TransferWise balance mismatch!', """TransferWise balance ({0}) for {1} does not match the accounting system ({2})! @@ -98,7 +98,7 @@ Better go check manually! payout.save() send_simple_mail(settings.INVOICE_SENDER_EMAIL, - settings.TREASURER_EMAIL, + pm.config('notification_receiver'), 'TransferWise payout triggered', """TransferWise balance ({0}) for {1} exceeded {2}. An automatic payout of {3} has been initiated, bringing the |
