~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/scripts/garbo.py

  • Committer: Steve Kowalik
  • Date: 2011-10-10 04:17:34 UTC
  • mto: This revision was merged to the branch mainline in revision 14124.
  • Revision ID: stevenk@ubuntu.com-20111010041734-wyo0jjhaewg80inh
Add another check into the if block, rather than another section. Make use of
with dbuser.

Show diffs side-by-side

added added

removed removed

Lines of Context:
840
840
        transaction.begin()
841
841
        tasks = list(self.query[:chunk_size])
842
842
        for (task, bug) in tasks:
843
 
            if not task.date_incomplete:
844
 
                # Filed as Incomplete.
845
 
                task._status = (
846
 
                    BugTaskStatusSearch.INCOMPLETE_WITHOUT_RESPONSE)
847
 
            elif (bug.date_last_message is None or
 
843
            if (bug.date_last_message is None or
 
844
                task.date_incomplete is None or
848
845
                task.date_incomplete > bug.date_last_message):
849
846
                task._status = (
850
847
                    BugTaskStatusSearch.INCOMPLETE_WITHOUT_RESPONSE)