From: Aaron Bentley Date: Mon, 21 Mar 2005 13:37:03 +0000 (+0000) Subject: Fixed double-listing of tree bugs when target is None X-Git-Tag: 1.0.0~336 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a39c0cd4ad07ff0ff371bcce7c8db33ca789efd0;p=be.git Fixed double-listing of tree bugs when target is None --- diff --git a/becommands/list.py b/becommands/list.py index d92ebac..94ca10a 100644 --- a/becommands/list.py +++ b/becommands/list.py @@ -24,15 +24,16 @@ def execute(args): my_bugs = [] other_bugs = [] unassigned_bugs = [] - for bug in bugs: - if tree.target is not None and bug.target != tree.target: - continue - if bug.assigned == current_id: - my_target_bugs.append(bug) - elif bug.assigned is None: - unassigned_target_bugs.append(bug) - else: - other_target_bugs.append(bug) + if tree.target is not None: + for bug in bugs: + if bug.target != tree.target: + continue + if bug.assigned == current_id: + my_target_bugs.append(bug) + elif bug.assigned is None: + unassigned_target_bugs.append(bug) + else: + other_target_bugs.append(bug) for bug in bugs: if tree.target is not None and bug.target == tree.target: