fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix downloading images on publish.
[wolnelektury.git]
/
src
/
club
/
management
/
commands
/
send_receipts.py
diff --git
a/src/club/management/commands/send_receipts.py
b/src/club/management/commands/send_receipts.py
index
d29c372
..
69cc2f9
100644
(file)
--- a/
src/club/management/commands/send_receipts.py
+++ b/
src/club/management/commands/send_receipts.py
@@
-18,6
+18,9
@@
class Command(BaseCommand):
parser.add_argument(
'--emails',
help='Send only to these emails.')
parser.add_argument(
'--emails',
help='Send only to these emails.')
+ parser.add_argument(
+ '--resend', action='store_true',
+ help='This is a re-send.')
def handle(self, *args, **options):
year = options['year']
def handle(self, *args, **options):
year = options['year']
@@
-48,6
+51,6
@@
class Command(BaseCommand):
for email in emails:
print(email)
try:
for email in emails:
print(email)
try:
- PayUOrder.send_receipt(email, year)
+ PayUOrder.send_receipt(email, year
, resend=options['resend']
)
except:
print('ERROR')
except:
print('ERROR')