~launchpad-pqm/launchpad/devel

« back to all changes in this revision

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

[r=wgrant][bug=871038] Fix BugTaskIncompleteMigrator to deal with
        BugTasks that were filed as Incomplete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
841
841
        tasks = list(self.query[:chunk_size])
842
842
        for (task, bug) in tasks:
843
843
            if (bug.date_last_message is None or
 
844
                task.date_incomplete is None or
844
845
                task.date_incomplete > bug.date_last_message):
845
 
                task._status = BugTaskStatusSearch.INCOMPLETE_WITHOUT_RESPONSE
 
846
                task._status = (
 
847
                    BugTaskStatusSearch.INCOMPLETE_WITHOUT_RESPONSE)
846
848
            else:
847
849
                task._status = BugTaskStatusSearch.INCOMPLETE_WITH_RESPONSE
848
850
        self.log.debug("Updated status on %d tasks" % len(tasks))