From: W. Trevor King Date: Thu, 13 Dec 2012 16:04:45 +0000 (-0500) Subject: libbe:command:util: fix bugdir access for complete_status and complete_severity X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=45a40819fe029a2645e9c06de49260e966b9c2bf;p=be.git libbe:command:util: fix bugdir access for complete_status and complete_severity Fix a bug introduced by: commit 4db1a045a0606bead191a563abc54dfa8352efe0 Author: W. Trevor King Date: Wed Aug 29 23:26:17 2012 -0400 Rewrite commands to use bugdirs instead of a single bugdir. Reported-by: James Spencer --- diff --git a/libbe/command/util.py b/libbe/command/util.py index 6f7b92e..9f76ad8 100644 --- a/libbe/command/util.py +++ b/libbe/command/util.py @@ -50,12 +50,12 @@ def complete_path(command, argument, fragment=None): return comp_path(fragment) def complete_status(command, argument, fragment=None): - bd = sorted(command._get_bugdirs().items())[1] + bd = sorted(command._get_bugdirs().items())[0] import libbe.bug return libbe.bug.status_values def complete_severity(command, argument, fragment=None): - bd = sorted(command._get_bugdirs().items())[1] + bd = sorted(command._get_bugdirs().items())[0] import libbe.bug return libbe.bug.severity_values