diff options
author | Robert Lehmann <mail@robertlehmann.de> | 2010-11-14 21:45:26 +0100 |
---|---|---|
committer | Robert Lehmann <mail@robertlehmann.de> | 2010-11-14 21:45:26 +0100 |
commit | a210eb6d8a3418a36aa0da75cf355b937ef1a992 (patch) | |
tree | 315ea82a56218fc61923f7004a58f5f3317fb308 /libbe | |
parent | 66037fb14b06ab42eb37e6cc93d10c9717ce0d9e (diff) | |
download | bugseverywhere-a210eb6d8a3418a36aa0da75cf355b937ef1a992.tar.gz |
Fix list --important to actually apply a filter.
Diffstat (limited to 'libbe')
-rw-r--r-- | libbe/command/depend.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbe/command/depend.py b/libbe/command/depend.py index e1446fe..0fd8f2e 100644 --- a/libbe/command/depend.py +++ b/libbe/command/depend.py @@ -84,11 +84,11 @@ def parse_status(status): return status def parse_severity(severity, important=False): - if severity == 'all': - severity = libbe.bug.severity_values - elif important == True: + if important == True: serious = libbe.bug.severity_values.index('serious') - severity.append(list(libbe.bug.severity_values[serious:])) + severity = list(libbe.bug.severity_values[serious:]) + elif severity == 'all': + severity = libbe.bug.severity_values else: severity = libbe.command.util.select_values( severity, libbe.bug.severity_values) |