Changeset 26fd6cf for asadb/groups


Ignore:
Timestamp:
Aug 28, 2012, 1:54:00 AM (14 years ago)
Author:
ASA Group Database <asa-db@…>
Branches:
master, space-access, stable, stage
Children:
8068f6d, 3af5d74
Parents:
0851637
git-author:
Alex Dehnert <adehnert@…> (08/28/12 01:54:00)
git-committer:
ASA Group Database <asa-db@…> (08/28/12 01:54:00)
Message:

August 28 derecognition reminder

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/find_missing_transition.py

    r0851637 r26fd6cf  
    3232def check_group(group, roles, ):
    3333    problems = []
    34     fail = False
     34    fail = True
    3535    if group.officer_email or group.description:
    3636        pass
     
    4242            problems.append(msg)
    4343            if cause_fail: fail = True
     44    problems.append("You have not contacted us about being unsuspended (or should do so again)")
    4445    return fail, problems
    4546
     
    6263    tmpl = get_template('groups/letters/missing-transition.txt')
    6364    emails = []
    64     for group in groups.models.Group.active_groups.all():
     65    for group in groups.models.Group.objects.filter(group_status__slug='suspended'):
    6566        fail, problems = check_group(group, roles, )
    6667        if fail:
Note: See TracChangeset for help on using the changeset viewer.