Changeset 26fd6cf for asadb/groups
- Timestamp:
- Aug 28, 2012, 1:54:00 AM (14 years ago)
- 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)
- File:
-
- 1 edited
-
asadb/groups/find_missing_transition.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
asadb/groups/find_missing_transition.py
r0851637 r26fd6cf 32 32 def check_group(group, roles, ): 33 33 problems = [] 34 fail = False34 fail = True 35 35 if group.officer_email or group.description: 36 36 pass … … 42 42 problems.append(msg) 43 43 if cause_fail: fail = True 44 problems.append("You have not contacted us about being unsuspended (or should do so again)") 44 45 return fail, problems 45 46 … … 62 63 tmpl = get_template('groups/letters/missing-transition.txt') 63 64 emails = [] 64 for group in groups.models.Group. active_groups.all():65 for group in groups.models.Group.objects.filter(group_status__slug='suspended'): 65 66 fail, problems = check_group(group, roles, ) 66 67 if fail:
Note: See TracChangeset
for help on using the changeset viewer.