Skip to content

Commit 312c23a

Browse files
committed
examples: query: Show how to add manual value
1 parent ac27e3d commit 312c23a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

examples/query.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@
2929
product="Fedora",
3030
component="python-bugzilla")
3131

32+
# Since 'query' is just a dict, you could set your own parameters too, like
33+
# if your bugzilla had a custom field. This will set 'status' for example,
34+
# but for common opts it's better to use build_query
35+
query["status"] = "CLOSED"
36+
3237
# query() is what actually performs the query. it's a wrapper around Bug.search
3338
t1 = time.time()
3439
bugs = bzapi.query(query)

0 commit comments

Comments
 (0)