From: Robert Lehmann Date: Sun, 14 Nov 2010 20:45:26 +0000 (+0100) Subject: Fix list --important to actually apply a filter. X-Git-Tag: 1.1.0~245^2~9 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a210eb6d8a3418a36aa0da75cf355b937ef1a992;p=be.git Fix list --important to actually apply a filter. --- 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)