renewal-script: Make it not mail if there are no members needing renewal
This commit is contained in:
parent
2e9d68fdf8
commit
85ede4c945
1 changed files with 15 additions and 11 deletions
|
@ -60,6 +60,10 @@ def main(options=None):
|
|||
|
||||
|
||||
members = get_members_which_need_renewal('month')
|
||||
if not members:
|
||||
log.warn('No one needs renewals! :-)')
|
||||
|
||||
else: # We do have members
|
||||
emailtext = format_members_for_mail(members)
|
||||
|
||||
today = datetime.date.today()
|
||||
|
|
Loading…
Reference in a new issue