Changeset 6559695 for asadb/groups


Ignore:
Timestamp:
Dec 23, 2012, 9:46:56 PM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
Branches:
master, space-access, stable, stage
Children:
161ce5f
Parents:
bb61160
git-author:
Alex Dehnert <adehnert@…> (12/23/12 21:46:56)
git-committer:
Alex Dehnert <adehnert@…> (12/23/12 21:46:56)
Message:

constitution-req.html is not a valid constitution

In groups/gather-constitutions.py and the related
https://asa.mit.edu/groups/constitutions/, this stops treating constitutions
containing /asa/start/constitution-req.html as valid constitutions. This makes
it easier to see how many and which groups really have a constitution, and
which don't. Fixes ASA-#170.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • asadb/groups/models.py

    rbda4d86 r6559695  
    170170        success = None
    171171        old_success = (self.failure_date is None)
    172         if url:
     172        if url and '/asa/start/constitution-req.html' not in url:
    173173            # Fetch the file
    174174            error_msg = None
     
    236236                    self.record_success("updated in place", updated=True)
    237237
     238        elif '/asa/start/constitution-req.html' in url:
     239            self.record_failure("constitution-req used")
     240            success = False
    238241        else:
    239242            self.record_failure("no url")
Note: See TracChangeset for help on using the changeset viewer.