~deryck/+junk/lpjunk

« back to all changes in this revision

Viewing changes to notify_expiry.py

  • Committer: Deryck Hodge
  • Date: 2010-08-25 14:30:27 UTC
  • Revision ID: deryck@devurandom.org-20100825143027-z8gadh1d0xnqj91q
Better way to bulk update the settings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
143
143
 
144
144
        # Actually update the settings here.
145
145
        if self.options.update:
146
 
            for project in projects:
147
 
                project.enable_bug_expiration = False
 
146
            projects.set(enable_bug_expiration=False)
148
147
            self.txn.commit()
149
148
 
150
149
        self.logger.debug('ExpiryNotifyScript is done.')