aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorW. Trevor King <wking@tremily.us>2012-12-13 11:04:45 -0500
committerW. Trevor King <wking@tremily.us>2012-12-13 11:04:45 -0500
commit45a40819fe029a2645e9c06de49260e966b9c2bf (patch)
treed2cec8730408a1f55d2daede945f7392b1af983b
parent72da0d82d9cf75bb89dffadedc6d9e9bd580dea0 (diff)
downloadbugseverywhere-45a40819fe029a2645e9c06de49260e966b9c2bf.tar.gz
libbe:command:util: fix bugdir access for complete_status and complete_severity
Fix a bug introduced by: commit 4db1a045a0606bead191a563abc54dfa8352efe0 Author: W. Trevor King <wking@tremily.us> Date: Wed Aug 29 23:26:17 2012 -0400 Rewrite commands to use bugdirs instead of a single bugdir. Reported-by: James Spencer <james.s.spencer@gmail.com>
-rw-r--r--libbe/command/util.py4
1 files changed, 2 insertions, 2 deletions
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