From 6921d9a001a0ecb338bcce6b1d09f1e34f9b802c Mon Sep 17 00:00:00 2001 From: Will Woods Date: Tue, 18 Sep 2007 11:45:56 -0400 Subject: Fix query --bug_status, clean up --bug_id --- bugzilla | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/bugzilla b/bugzilla index cd72492..0597b59 100755 --- a/bugzilla +++ b/bugzilla @@ -137,10 +137,7 @@ if __name__ == '__main__': elif action == 'query': # shortcut for specific bug_ids if opt.bug_id: - if ',' in opt.bug_id: - buglist=bz.getbugs(opt.bug_id.split(',')) - else: - buglist=[bz.getbug(opt.bug_id)] + buglist=bz.getbugs(opt.bug_id.split(',')) else: # Construct the query from the list of queryable options q = dict() @@ -151,7 +148,7 @@ if __name__ == '__main__': i = getattr(opt,a) if i: if a in ('bug_status'): # list args - q[a] = i.split(',').strip() + q[a] = i.split(',') elif a in ('cc','assigned_to'): # the email query fields are kind of weird - thanks # to Florian La Roche for figuring this bit out. -- cgit