I am trying to use the python api to query based on flags. I have tried build_qeury with lines like:
flag = ["sat-6.0.3+"],
and
flag = [{"name": "sat-6.0.3", "status": "+"}],
neither of which seem to work. Are there examples of using the API to query via flags?
Thanks in advance.
-- bk
On 03/23/2014 04:08 PM, Bryan Kearney wrote:
I am trying to use the python api to query based on flags. I have tried build_qeury with lines like:
flag = ["sat-6.0.3+"],
and
flag = [{"name": "sat-6.0.3", "status": "+"}],
neither of which seem to work. Are there examples of using the API to query via flags?
Thanks in advance.
Passing build_query(flag=["needinfo?"]) works for me... what's your full build_query invocation? Also make sure you are logged in.
print bzapi.build_query(product="Fedora", version="20", component="qemu", flag=["needinfo?"])
{'product': ['Fedora'], 'value0-0-0': 'needinfo?', 'version': '20', 'query_format': 'advanced', 'type0-0-0': 'substring', 'component': ['qemu'], 'field0-0-0': 'flagtypes.name'}
If I just do query(build_query(flag=["sat-6.0.3+"])) it produces results for me.
- Cole
On 03/23/2014 05:21 PM, Cole Robinson wrote:
On 03/23/2014 04:08 PM, Bryan Kearney wrote:
I am trying to use the python api to query based on flags. I have tried build_qeury with lines like:
flag = ["sat-6.0.3+"],
and
flag = [{"name": "sat-6.0.3", "status": "+"}],
neither of which seem to work. Are there examples of using the API to query via flags?
Thanks in advance.
Passing build_query(flag=["needinfo?"]) works for me... what's your full build_query invocation? Also make sure you are logged in.
print bzapi.build_query(product="Fedora", version="20", component="qemu", flag=["needinfo?"])
{'product': ['Fedora'], 'value0-0-0': 'needinfo?', 'version': '20', 'query_format': 'advanced', 'type0-0-0': 'substring', 'component': ['qemu'], 'field0-0-0': 'flagtypes.name'}
If I just do query(build_query(flag=["sat-6.0.3+"])) it produces results for me.
- Cole
ok.. I finaly got it working with
flag = ["sat-6.0.3+ | sat-6.0.3?"],
Thanks!
-- bk
python-bugzilla@lists.fedorahosted.org