aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-03-21 13:37:03 +0000
committerAaron Bentley <abentley@panoramicfeedback.com>2005-03-21 13:37:03 +0000
commita39c0cd4ad07ff0ff371bcce7c8db33ca789efd0 (patch)
tree927c0e1d268f52fd34167c8ec6cf2f6760d642ed
parent5476a1f89dd1ef9491ade3c8f2012048a4492231 (diff)
downloadbugseverywhere-a39c0cd4ad07ff0ff371bcce7c8db33ca789efd0.tar.gz
Fixed double-listing of tree bugs when target is None
-rw-r--r--becommands/list.py19
1 files changed, 10 insertions, 9 deletions
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: