diff options
author | Will Woods <wwoods@redhat.com> | 2007-09-18 11:45:56 -0400 |
---|---|---|
committer | Will Woods <wwoods@redhat.com> | 2007-09-18 11:45:56 -0400 |
commit | 6921d9a001a0ecb338bcce6b1d09f1e34f9b802c (patch) | |
tree | 75ac01e664ebdc0d55b6510ad41e96f9a2eba064 | |
parent | aa7576fa472b30b51688436cb9924b3c0e76dc75 (diff) | |
download | python-bugzilla-6921d9a001a0ecb338bcce6b1d09f1e34f9b802c.tar.gz python-bugzilla-6921d9a001a0ecb338bcce6b1d09f1e34f9b802c.tar.xz python-bugzilla-6921d9a001a0ecb338bcce6b1d09f1e34f9b802c.zip |
Fix query --bug_status, clean up --bug_id
-rwxr-xr-x | bugzilla | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -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. |